graphicabyss Posted February 26 Share Posted February 26 (edited) Hello, Can someone please help me, I am trying to hide certain images on the mobile version of my website using the code: @media screen and (max-width: 640px) { #block-yui_3_17_2_1_1689763110049_14549 { display: none !important; } } But it's not working! My website is karlmackieshop.com Grateful for some advice and thanks in advance. Edited February 26 by graphicabyss Link to comment
nick_sh Posted February 26 Share Posted February 26 @graphicabyss This id seems to target a button. Also code doesn't seem to apply although it's correct for hiding. Hire me for SquareSpace development Link to comment
graphicabyss Posted February 26 Author Share Posted February 26 Ah, thanks for replying to this, really cool. I had pasted in the incorrect ID, this one is correct: @media screen and (max-width: 640px) { #block-yui_3_17_2_1_1689763110049_14549 { display: none !important; } } Link to comment
nick_sh Posted February 26 Share Posted February 26 Are you adding to Custom CSS? It maybe an error before so code isn't processed. Because it works if applied directly to the site. Hire me for SquareSpace development Link to comment
graphicabyss Posted February 26 Author Share Posted February 26 Hi, yes I am adding it to the top line of custom css at the very top, what does 'an error before' mean? Many thanks Link to comment
Solution WCS Posted February 26 Solution Share Posted February 26 @graphicabyss Is it removing the image in the mobile preview, but not on your phone? If so, then you may have to adjust the max width to 720. I had to do this for a client recently. @media screen and (max-width: 720px) { #block-yui_3_17_2_1_1689763110049_14549 { display: none !important; } } nick_sh 1 Did we help? Click 👍 or mark it as the solution! This helps others find the answers they need. Meghan, Owner of Westerly Creative Studio 🐋 We're a Bay Area creative force specializing in Squarespace & Branding Solutions ☕️ Donations to our coffee fund help fuel our support 👩💻 Need to buy your website policies? Termageddon makes it easy. ✨ Get 10% off your first year! (< affiliate link) Link to comment
graphicabyss Posted February 26 Author Share Posted February 26 It worked! Thank you so much! I increased to 800 to hide on iPad as well but thats been amazing to solve this! WCS 1 Link to comment
WCS Posted February 26 Share Posted February 26 @graphicabyss I'm glad that worked! Happy designing 😊 Did we help? Click 👍 or mark it as the solution! This helps others find the answers they need. Meghan, Owner of Westerly Creative Studio 🐋 We're a Bay Area creative force specializing in Squarespace & Branding Solutions ☕️ Donations to our coffee fund help fuel our support 👩💻 Need to buy your website policies? Termageddon makes it easy. ✨ Get 10% off your first year! (< affiliate link) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment