PartTwoDesign Posted August 1, 2023 Posted August 1, 2023 Hi, I have used this code to add a hamburger menu to the desktop version of my site. /* Hamburger nav on desktop */ .header .header-burger{display:flex} .header-nav, .header-actions {display:none} .header--menu-open .header-menu { opacity: 1; visibility: visible;} .header-menu-nav-item {line-height: 20px!important;} This works great but I have noticed that there is now a strikethrough over the text of whatever page I am currently on. Is there a way to make this an underline rather than a strikethrough? I have also noticed that the hamburger icon has knocked my logo off centre. Is there also a way to fix this? Thank you in advance for any help! Chris Password: parttwo
Ziggy Posted August 1, 2023 Posted August 1, 2023 Can you share your website URL? This may be the reason for the underline becoming a strikethrough:.header-menu-nav-item {line-height: 20px!important;} Try changing it to 1.2em from 20px. 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?
PartTwoDesign Posted August 1, 2023 Author Posted August 1, 2023 @Ziggy Thanks for the reply! I tried changing it to 1.2em but it didn't seem to work. Would there be anything else you would suggest? Thanks, Chris My URL is https://violin-ruby-pfwe.squarespace.com Password: parttwo
Solution Ziggy Posted August 1, 2023 Solution Posted August 1, 2023 Center the title: .header-title-nav-wrapper { margin-left: 47px; } Can you remove the 20px line height property entirely, and use this instead to adjust the spacing between elements: .header-menu-nav-item a { margin: 1vw 4vw; } PartTwoDesign 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?
PartTwoDesign Posted August 1, 2023 Author Posted August 1, 2023 Thanks @Ziggy That worked! Thank you for all the help! Chris Ziggy 1
PartTwoDesign Posted August 2, 2023 Author Posted August 2, 2023 Hi, @Ziggy I have just noticed that the code for centring the title logo on desktop has knocked it off centre when viewed on mobile. Is there a way to centre the logo normally on mobile? Thanks again, Chris
Ziggy Posted August 2, 2023 Posted August 2, 2023 Try this instead: @media only screen and (min-width:768px) { .header-title-nav-wrapper { margin-left: 47px; } } tuanphan and PartTwoDesign 2 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?
PartTwoDesign Posted August 2, 2023 Author Posted August 2, 2023 @Ziggy That worked! Thank you so much! Chris Ziggy 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment