graphicabyss Posted February 26 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
nick_sh Posted February 26 Posted February 26 @graphicabyss This id seems to target a button. Also code doesn't seem to apply although it's correct for hiding. Try new Squrespace ID & class finder Chrome Extension ✔ Supports Fluid Engine ✔ Generate Media Queries code ✔ Toggle IDs with Option / Alt ____ Hire me for SquareSpace development
graphicabyss Posted February 26 Author 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; } }
nick_sh Posted February 26 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. Try new Squrespace ID & class finder Chrome Extension ✔ Supports Fluid Engine ✔ Generate Media Queries code ✔ Toggle IDs with Option / Alt ____ Hire me for SquareSpace development
graphicabyss Posted February 26 Author 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
Solution WCS Posted February 26 Solution 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 I help? Click 👍 or mark it as the solution! This helps others find the answers they need. Meghan | Westerly Creative Studio 🍪 Still need your website policies? Termageddon makes it easy. Get 10% off your first year! (< affiliate link)
graphicabyss Posted February 26 Author 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
WCS Posted February 26 Posted February 26 @graphicabyss I'm glad that worked! Happy designing 😊 Did I help? Click 👍 or mark it as the solution! This helps others find the answers they need. Meghan | Westerly Creative Studio 🍪 Still need your website policies? Termageddon makes it easy. Get 10% off your first year! (< affiliate link)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment