AntonyO Posted September 8 Share Posted September 8 Hello, Is there a way to remove the burger menu on mobile in 7.1, rather than simply 'hiding' it. I found the code below, but it only hides it, the actual menu is still there and clickable. <style> @media screen and (max-width:767px) { /* hide burger */ .burger-box { visibility: hidden; } </style> This also means that the shopping cart does not move over to the right, which would be ideal. Thanks in advance Antony Link to comment
Ziggy Posted September 8 Share Posted September 8 Instead of visibility: hidden; use: display:none; OR add pointer-events:none; to visibility: hidden; 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
AntonyO Posted September 8 Author Share Posted September 8 Hi Ziggy, Thank you for your reply, I have tried the following 2 options, but unfortunately, it still has the same results. The Menu is still camouflaged and still clickable and active. <style> @media screen and (max-width:767px) { /* hide burger */ .burger-box { visibility: hidden; pointer-events:none; } </style> and <style> @media screen and (max-width:767px) { /* hide burger */ .burger-box { display:none; } </style> Link to comment
Ziggy Posted September 8 Share Posted September 8 Where are you placing this? You have a missing closing curly bracket at the end of each of the code (inside the </style>) Can you share your website URL? 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
AntonyO Posted September 8 Author Share Posted September 8 Hi Ziggy, This is being placed in the Page Header Code Injection of the Store Page, as I only need to remove it from the Store Pages as we direct into here from outside links. I am also hiding from the Cart via the CSS. The URL is www.thesignbridge.com/flat-cut-letters-logos Ziggy 1 Link to comment
Solution Ziggy Posted September 8 Solution Share Posted September 8 Okay, can you try this code: <style> .header-burger { display:none !important; } </style> You don't need the media query as the mobile menu only show on mobile (mostly) anyway. AntonyO 1 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
AntonyO Posted September 8 Author Share Posted September 8 Perfect! Thank you, Ziggy! Ziggy 1 Link to comment
Ziggy Posted September 8 Share Posted September 8 6 minutes ago, AntonyO said: Thank you, Ziggy! Happy to help! AntonyO 1 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment