lievenb Posted November 5, 2021 Posted November 5, 2021 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.
Beyondspace Posted November 5, 2021 Posted November 5, 2021 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
lievenb Posted November 6, 2021 Author Posted November 6, 2021 Hi tried adding .header-nav-item.header-nav-item--collection >[href="/contact"] { display: none; } but it still shows Contact in the navigation bar
derricksrandomviews Posted November 6, 2021 Posted November 6, 2021 Move any page you don't want on the nav bar to the unlinked section of your site.
lievenb Posted November 6, 2021 Author Posted November 6, 2021 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
lievenb Posted November 6, 2021 Author Posted November 6, 2021 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?
tuanphan Posted November 7, 2021 Posted November 7, 2021 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; } } 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!)
lievenb Posted November 8, 2021 Author Posted November 8, 2021 is thetre a similar option for mobile?
tuanphan Posted November 10, 2021 Posted November 10, 2021 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.