Callan Posted October 16, 2023 Posted October 16, 2023 Hello brains, I'm using the following code to try to hide a section on mobile: @media screen and (max-width:640px) { section[data-section-id=“521f8bb33932843b56f8b05”] { display: none; } } But alas, it's still showing in mobile. Any ideas on what I'm doing wrong? You can see my screenshot below. URL is https://pigeon-flatworm-tkrl.squarespace.com/ P/W: Callan
Ziggy Posted October 16, 2023 Posted October 16, 2023 The only error I can see is the type of quote marks you have in the section ID, try this fix: @media only screen and (max-width:767px) { section[data-section-id="521f8bb33932843b56f8b05"] { display: none; } } Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
Callan Posted October 16, 2023 Author Posted October 16, 2023 Thanks again Ziggy, but that didn't seem to work.
Solution Ziggy Posted October 16, 2023 Solution Posted October 16, 2023 You also had an error in the section ID you shared initially, I assumed that was correct, try this: @media only screen and (max-width:767px) { section[data-section-id="6521f8bb33932843b56f8b05"] { display: none; } } Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
Callan Posted October 16, 2023 Author Posted October 16, 2023 Wow, thought I had triple checked that. Thank you.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment