mbockmaster Posted April 5, 2023 Posted April 5, 2023 Hello! I was able to get a sticky nav working well thanks to @tuanphan and @Ziggy's work in other threads. I've got just one small snag I can't figure out. I have a burger menu on desktop and mobile. When the user scrolls down the page and then clicks to open the burger menu, the shrink header spacing is being applied. Screenshots attached as I'm having a hard time describing. I can't seem to isolate this in the CSS. I would be so grateful for your insight! page password: 140ann
Ziggy Posted April 5, 2023 Posted April 5, 2023 Sure, 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 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?
mbockmaster Posted April 5, 2023 Author Posted April 5, 2023 Oops! It's https://www.andasanas.com/yoga-classes
Ziggy Posted April 6, 2023 Posted April 6, 2023 Does this help? .header-layout-branding-center .header-title { margin-top:12px; } 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?
mbockmaster Posted April 6, 2023 Author Posted April 6, 2023 Thanks for looking! Unfortunately not. That code targets the entire header whereas I need to fix the spacing only on shrink.
tuanphan Posted April 8, 2023 Posted April 8, 2023 On 4/7/2023 at 1:10 AM, mbockmaster said: Thanks for looking! Unfortunately not. That code targets the entire header whereas I need to fix the spacing only on shrink. Change code to this header#header.shrink .header-title { margin-top:12px; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
mbockmaster Posted April 17, 2023 Author Posted April 17, 2023 Thanks @tuanphan. That doesn't seem to help, perhaps I'm not explaining well. I made a super quick screen recording: https://watch.screencastify.com/v/lEWqCj4u0d0R2yOhcgLV Thanks so much for your help!
mbockmaster Posted April 25, 2023 Author Posted April 25, 2023 Hi @tuanphan, sorry to be a bug! Just curious if you have any ideas to fix this issue 🙂
mbockmaster Posted April 25, 2023 Author Posted April 25, 2023 Oh my gosh, through so much trial and error, I was able to fix it on my own!!! I used the selectors below and gave it the same padding as the .header-announcement-bar-wrapper 🙂 .header--menu-open .shrink .header-announcement-bar-wrapper tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment