Jump to content

Hide Nav Items from different pages

Recommended Posts

Site URL: https://www.dirtkitchensnacks.com/

Hello,

I'm using the theme Brine and looking to do A and B testing on my site. I have duplicated all the pages and I'm looking to hide A navigation pages from B navigation pages and vise versa. Currently I have all my pages moved over to no linked and created individual links for all the pages in my primary and secondary navigations. What's the best way to hide specific url nav items from each page? 

Any help greatly appreciated.

Website password is dksnacks

Link to comment
  • Replies 1
  • Created
  • Last Reply

To hide an item on any page, add this code to page Settings > Advanced > Header

here is an example for our story item

<style>
  a.Header-nav-item[href="/our-story"] {
    display: none;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • 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.