Callan Posted October 16 Share Posted October 16 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 Link to comment
Ziggy Posted October 16 Share Posted October 16 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 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Callan Posted October 16 Author Share Posted October 16 Thanks again Ziggy, but that didn't seem to work. Link to comment
Solution Ziggy Posted October 16 Solution Share Posted October 16 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 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Callan Posted October 16 Author Share Posted October 16 Wow, thought I had triple checked that. Thank you. 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