Jump to content

Add a navigation link on specific pages only

Recommended Posts

  • Replies 8
  • Views 1k
  • Created
  • Last Reply

Top Posters In This Topic

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 (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

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?

 

Link to comment
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!)

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.