TigerLily67 Posted June 11 Posted June 11 I want to add a color and background blur to a text box that only shows on the mobile. Currently, it's either both or nothing. Any help is appreciated. https://corn-ferret-28x9.squarespace.com/
Lesum Posted June 11 Posted June 11 @TigerLily67 The site is private. You have to publish the site with a password. Also, create a text block similar to how you described. Then, I can provide a custom code solution to display that text block only on mobile. If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
TigerLily67 Posted June 11 Author Posted June 11 Hey @Lesum, thanks for your help. The password is Zippy. Currently, the box is shown on the homepage and styled correctly. However, as shown in the image above, I need it to ONLY appear on mobile.
Lesum Posted June 11 Posted June 11 @TigerLily67 Password isn't working. If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
Lesum Posted June 11 Posted June 11 @TigerLily67 Can you also add another text block that will be displayed on desktop? If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
TigerLily67 Posted June 11 Author Posted June 11 I'm sorry, I don't understand. The exact same text box will appear on the home page, only it should be text only.
Lesum Posted June 11 Posted June 11 (edited) @TigerLily67 Sorry, I didn't explain properly. You need to create two text blocks, one with a background (for the mobile version) and another without a background. Then, with custom code, I'll change it so that the one without a background is visible only on desktop, and the one with a background is visible only on mobile. Just make a duplicate of the text box you have right now and remove its background, which we'll display on desktop. Edited June 11 by Lesum TigerLily67 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
TigerLily67 Posted June 11 Author Posted June 11 OK. done. But what about positioning? Will I be able to stack them so they're in the same space? I'm unclear how this works. 🙂
Solution Lesum Posted June 11 Solution Posted June 11 @TigerLily67 Add this code under Website > Pages > Website Tools > Custom CSS // text block for mobile hide on desktop @media screen and (min-width: 768px) { .fe-block-270c1c9e6080aa2c3621 { display: none !important; } } // text block for desktop hide on mobile @media screen and (max-width: 767px) { .fe-block-d76286978c2c65f9e336 { display: none !important; } } You can adjust the position of the text block in Squarespace editor. If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment