Jump to content

Add a navigation link on specific pages only

Recommended Posts

  • Replies 8
  • 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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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

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
On 11/8/2021 at 4:19 PM, lievenb said:

is thetre a similar option for mobile?

The code is for both desktop + mobile. You try checking again

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

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.