Jump to content

How to remove a menu item from portfolio page but not projects squarespace

Go to solution Solved by KwameAndCo,

Recommended Posts

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

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; 
}

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.