Jump to content

Hide primary or secondary navigation

Recommended Posts

To hide primary on one page, add this to Page Settings > Advanced > Header (If you use Personal Plan > Add Code Block)

<style>
  nav.Header-nav.Header-nav--primary {
    display: none;
}
</style>

To hide secondary, use this code

<style>
  nav.Header-nav.Header-nav--secondary {
    display: none;
}
</style>

You can also use these guides to create multi language sites

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 years later...
On 4/29/2023 at 4:17 PM, Burchard said:

I'm working this out on maartenrots.nl

To hide Mobile Primary, use this code

<style>
  nav.Mobile-overlay-nav.Mobile-overlay-nav--primary {
    display: none;
}
</style>

To hide Mobile Secondary, use this code

<style>
  nav.Mobile-overlay-nav.Mobile-overlay-nav--secondary {
    display: none;
}
</style>

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.