PapaJoe Posted March 12 Share Posted March 12 Hello, Please, I would like to hide the nav menu link 2,4 and 7 on the Homepage & link 1,3 & 6 on everyother page. Can anyone help? Link to comment
Ziggy Posted March 13 Share Posted March 13 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 ☕ Did I help? Buy me a coffee? 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) Link to comment
PapaJoe Posted March 13 Author Share Posted March 13 2 hours ago, Ziggy said: Can you share your website URL? This is the homepage - https://www.whiteroan.com/home-1 (Though I've not set it to homepage yet to the public) Then the other pages are the "Projects" and "Akoya" page. Link to comment
Solution Ziggy Posted March 13 Solution Share Posted March 13 Try this Custom CSS: // hide links on every page .header-menu-nav-item:nth-child(1) {display:none;} .header-menu-nav-item:nth-child(3) {display:none;} .header-menu-nav-item:nth-child(6) {display:none;} #collection-65e2265c5a803a43536b24c4 { // show links on homepage .header-menu-nav-item:nth-child(1) {display:initial;} .header-menu-nav-item:nth-child(3) {display:initial;} .header-menu-nav-item:nth-child(6) {display:initial;} // hide links on homepage .header-menu-nav-item:nth-child(2) {display:none;} .header-menu-nav-item:nth-child(4) {display:none;} .header-menu-nav-item:nth-child(7) {display:none;} } Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com ☕ Did I help? Buy me a coffee? 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) Link to comment
PapaJoe Posted March 13 Author Share Posted March 13 6 minutes ago, Ziggy said: Try this Custom CSS: // hide links on every page .header-menu-nav-item:nth-child(1) {display:none;} .header-menu-nav-item:nth-child(3) {display:none;} .header-menu-nav-item:nth-child(6) {display:none;} #collection-65e2265c5a803a43536b24c4 { // show links on homepage .header-menu-nav-item:nth-child(1) {display:initial;} .header-menu-nav-item:nth-child(3) {display:initial;} .header-menu-nav-item:nth-child(6) {display:initial;} // hide links on homepage .header-menu-nav-item:nth-child(2) {display:none;} .header-menu-nav-item:nth-child(4) {display:none;} .header-menu-nav-item:nth-child(7) {display:none;} } Thanks Ziggy, it worked except there is now a wide space in the nav menu. Is there a way to fix that? Link to comment
Ziggy Posted March 13 Share Posted March 13 Strange, try this: .header-menu-nav-item a { margin: 1vw 5vw; } Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com ☕ Did I help? Buy me a coffee? 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) Link to comment
PapaJoe Posted March 13 Author Share Posted March 13 28 minutes ago, Ziggy said: Strange, try this: .header-menu-nav-item a { margin: 1vw 5vw; } Thank you so much Ziggy, that worked too! But the mobile menu links are uneven for some reason Link to comment
Ziggy Posted March 13 Share Posted March 13 It looks like that is because of this CSS you have on your website: .header-menu-nav-item { margin: 50px 0; } Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com ☕ Did I help? Buy me a coffee? 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) Link to comment
PapaJoe Posted March 13 Author Share Posted March 13 7 hours ago, Ziggy said: It looks like that is because of this CSS you have on your website: .header-menu-nav-item { margin: 50px 0; } Thank you! Ziggy 1 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