Jump to content

[Share] Hide an item from Navigation

Recommended Posts

Hide 1 item

Suppose you want to hide the “Services” item on One Page

image

You can use this code to Individual Page Header Code Injection

<!-- hide 1 item -->
<style>
div.header-nav-item:nth-child(3), [data-folder="root"]>div>div>div:nth-child(3) {
    display: none;
}
</style>

Hide 2 items

Suppose you want to hide the “Contact” and “Services” item

image

You can use this code to Individual Page Header Code Injection

<!-- hide 2 items -->
<style>
div.header-nav-item:nth-child(2), div.header-nav-item:nth-child(3), [data-folder="root"]>div>div>div:nth-child(2), [data-folder="root"]>div>div>div:nth-child(3) {
    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
  • Replies 0
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.