bartseijbel Posted March 20 Share Posted March 20 Hi! I want to remove an item from my nav menu on certain pages (only the homepage). At the moment, I use my portfolio page (called Work) as my homepage. I don't want the Work menu option to be visible when on the homepage, but have it be visible when not on it. I almost got it to work when putting the following code in my page header code: <style> /* remove 'work' from menu*/ /* desktop */ .header-nav-item:nth-of-type( 3 ), /* work */ /* mobile */ .header-menu-nav-item:nth-of-type( 3 ) /* work */ { display: none; } </style> This works fine when visiting pages like about, or contact, but the problem occurs when visiting a project page. The menu option is still not visible when on a project page and I would like it to be visible there. Does any of you know how to go on about that? Website: https://bartseijbel.nl Thanks, Bart Link to comment
Solution KwameAndCo Posted March 20 Solution Share Posted March 20 You can use body#collection-65f30f29d85f6f55dab01008 .header-nav-item:nth-of-type( 3 ), body#collection-65f30f29d85f6f55dab01008 .header-menu-nav-item:nth-of-type( 3 ) { display: none; } bartseijbel 1 Work With Me 🖥️💻📱 Please remember to tag me so that I get a notification and respond to your help requests. If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly. You can also thank me or make requests by buying me a coffee ☕. (Caffeine fuels me to take more requests) For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials) For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩 Some links may be affiliate/referral links. 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