AJZ Posted September 15, 2023 Posted September 15, 2023 Hi, The goal is to use the burger menu across all devices - I've done this on other websites and it's worked just fine. However, the same CSS code that is currently working on other 7.1 websites isn't working here. I've tried a number of similar iterations of code (from this forum, insidethesquare, Bard, and Chat GPT) and none seem to have any effect. I'm confused as this seems like a common and simple modification and the site is very much in its infancy and has almost no CSS or code injection. Any help would be appreciated.
Ziggy Posted September 15, 2023 Posted September 15, 2023 That sounds frustrating! Can you share some specific details? Website URL, code, somewhere it is working? AJZ 1 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?
AJZ Posted September 16, 2023 Author Posted September 16, 2023 Of course, thanks for looking into it. Website: www.dream.industries I've tried a few different codes, but here's one that works on another Squarespace website but seems to have no effect here. //use mobile menu on desktop// .header .header-burger{display:flex} .header-nav, .header-actions {display:none} .header--menu-open .header-menu { opacity: 1; visibility: visible;} //end use mobile menu on desktop//
Solution inside_the_square Posted September 16, 2023 Solution Posted September 16, 2023 Hey @AJZ I just took a look at your source code and there is some typo/character issue that is blocking your code from rendering after line 35721. Your code is just fine for 7.1, so something must have carried over from wherever you store your codes. 😬 https://vimeo.com/865155812/e356e70256?share=copy If you remove your code & notes, and replace it with this you should be good to go. P.S. be sure to add !important for your burger display value change to make sure it's not ignored by the browser. Hope this helps! /* burger on desktop */ .header .header-burger{display:flex!important} .header-nav, .header-actions {display:none} .header--menu-open .header-menu { opacity: 1; visibility: visible;} AJZ 1 🤓 Creator of InsideTheSquare.co ✨ SQUARESPACE CIRCLE LEADER✨ SQUARESPACE EXPERT ✨ SQUARESPACE EMPLOYEE EDUCATOR ✨ CERTIFIED CUSTOM CODE EXPERT ✨ 🗺️ New to Squarespace? Get your free roadmap: insidethesquare.co/roadmap 🙋♀️ New to CSS? Learn the basics for free: insidethesquare.co/learn ⭐️ Ready to go pro? Get my custom code collection: insidethesquare.co/css
AJZ Posted September 17, 2023 Author Posted September 17, 2023 (edited) Wow, I feel like I've just been visited by a celebrity! Thank you so much, love your videos! You've helped me a fair amount over the last few years! Just went through every other variable I could imagine and found the glitch. The Vimeo video helped. (My CSS formatting for the calendar was not specific enough.) Edited September 17, 2023 by AJZ found the bug inside_the_square 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment