Jump to content

Add a navigation link on specific pages only

Recommended Posts

  • Replies 8
  • Views 1.5k
  • Created
  • Last Reply
Posted
1 hour ago, lievenb said:

Hi,

I'm on ISHSIMOTO 7.0 and would like to add a navigation link on specific pages only. Any idea how this can be done.

I've try the following steps:

1. Add the navigator link as usual

2. Set Css to set none display to this navigator (for all pages)

3. Set Css to set display block to this navigator in some specific page id

My testing Css

/*set no display for the new navigator*/
.header-nav-item.header-nav-item--collection >[href="/Yournavlink"] {
  display: none;
}

/*Set display for new navigator in some specific pages*/
specificpages Id .header-nav-item.header-nav-item--collection >[href="/Yournavlink"] {
  display: block;
}

Let me know how it works and your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

Hi tried adding

.header-nav-item.header-nav-item--collection >[href="/contact"] {
  display: none;
}

but it still shows Contact in the navigation bar

 

CSS.JPG

page settings.JPG

site.JPG

Posted

unlinked section is not a solution because than the page never shows up in the navigation. I'm looking for a way that the it shows up in the navigation in specific sections of the website

Posted

I can hide the full navigation bar on a specific page. With CSS code below.

/* Desktop - Tablet */
body#collection-616d4910a4a355709a2cb5e1 div#topNav {
    display: none;
}
/* Mobile */
body#collection-616d4910a4a355709a2cb5e1 div#mobileMenuLink {
    display: none;
}

 

Is there a way to hide just a single item from the navigation bar?

 

Posted
15 hours ago, lievenb said:

I can hide the full navigation bar on a specific page. With CSS code below.

/* Desktop - Tablet */
body#collection-616d4910a4a355709a2cb5e1 div#topNav {
    display: none;
}
/* Mobile */
body#collection-616d4910a4a355709a2cb5e1 div#mobileMenuLink {
    display: none;
}

 

Is there a way to hide just a single item from the navigation bar?

 

Use this code

/* Desktop - Tablet */
body#collection-616d4910a4a355709a2cb5e1 {
ul#nav>li:nth-child(1) {
    display: none;
}
}

image.thumb.png.ffc62ca031f264f6bdd220c2b7f7d787.png

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!)

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.