pbueno24 Posted November 29, 2021 Share Posted November 29, 2021 Site URL: https://pte.squarespace.com/ Hi! I am trying to hide the redundant navigation items that appear in my drop down menus. Specifically, "ABOUT" "CAREERS" & "CONTACT". I found this thread below, which is exactly what I am trying to do, but after customizing the CSS to my site, it didn't work out: Link to comment
Beyondspace Posted November 30, 2021 Share Posted November 30, 2021 17 hours ago, pbueno24 said: Site URL: https://pte.squarespace.com/ Hi! I am trying to hide the redundant navigation items that appear in my drop down menus. Specifically, "ABOUT" "CAREERS" & "CONTACT". I found this thread below, which is exactly what I am trying to do, but after customizing the CSS to my site, it didn't work out: You can try adding to Home > Design > Custom Css .header-nav-item--folder .header-nav-folder-content .header-nav-folder-item:first-child { display: none; } Let me know how it works on your site Press 👍 or mark this answer as solution to help another one too pbueno24 1 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, Lightbox Studio pluginIf 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
Beyondspace Posted November 30, 2021 Share Posted November 30, 2021 My testing result hidden nav.mp4 Hope it can help 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, Lightbox Studio pluginIf 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
pbueno24 Posted November 30, 2021 Author Share Posted November 30, 2021 Thanks again @bangank36 This works great on desktop, however they are still showing up on mobile. Do you know how to fix this? Link to comment
pbueno24 Posted November 30, 2021 Author Share Posted November 30, 2021 .header-menu-nav-folder-content .container.header-menu-nav-item:nth-child(2) { display: none; } ^ this seems to be really close, but it is hiding my "work" page as well, which needs to stay visible. Link to comment
tuanphan Posted December 1, 2021 Share Posted December 1, 2021 23 hours ago, pbueno24 said: .header-menu-nav-folder-content .container.header-menu-nav-item:nth-child(2) { display: none; } ^ this seems to be really close, but it is hiding my "work" page as well, which needs to stay visible. Try this new code header#header [href="/about"], header#header [href="/contact"] { display: none; } pbueno24 1 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
pbueno24 Posted December 1, 2021 Author Share Posted December 1, 2021 Thanks again ya'll! Link to comment
Phiso Posted May 2, 2022 Share Posted May 2, 2022 Hi @tuanphan I have created a page dedicated to contact and I would like the contact button in the header to link to it. How can I remove the redundant "contact" item in the menu? If I try your code header#header [href="/contact"] { display: none; } it removes the menu item but also the button. I would love to have the button remaining on my website (and remove only the "contact" item in the navigation bar) here is my website https://accordion-dogfish-8dex.squarespace.com/config/design/custom-css password: thanksalot By advance thanks, Sophie Link to comment
tuanphan Posted May 5, 2022 Share Posted May 5, 2022 On 5/2/2022 at 4:38 PM, Phiso said: Hi @tuanphan I have created a page dedicated to contact and I would like the contact button in the header to link to it. How can I remove the redundant "contact" item in the menu? If I try your code header#header [href="/contact"] { display: none; } it removes the menu item but also the button. I would love to have the button remaining on my website (and remove only the "contact" item in the navigation bar) here is my website https://accordion-dogfish-8dex.squarespace.com/config/design/custom-css password: thanksalot By advance thanks, Sophie Incorrect password. Can you check it 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
Phiso Posted May 10, 2022 Share Posted May 10, 2022 (edited) Hi @tuanphan Sorry for the delay and the wrong password (I have been travelling last week). Website address is: https://accordion-dogfish-8dex.squarespace.com or https://www.sophierevillard.com password is: startmakingsense By advance thanks for your help! Edited May 11, 2022 by Phiso Link to comment
tuanphan Posted May 13, 2022 Share Posted May 13, 2022 On 5/10/2022 at 4:36 PM, Phiso said: Hi @tuanphan Sorry for the delay and the wrong password (I have been travelling last week). Website address is: https://accordion-dogfish-8dex.squarespace.com or https://www.sophierevillard.com password is: startmakingsense By advance thanks for your help! Hi, It looks like you solved? I don't see any contact item on header now 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
Phiso Posted May 13, 2022 Share Posted May 13, 2022 Hi @tuanphan Yes I did! Thanks a million for looking at it! With all my appreciation, Sophie tuanphan 1 Link to comment
El1z4b3th Posted May 23, 2022 Share Posted May 23, 2022 (edited) Hi all, I need some help hiding navigation items on specific pages only. I'm trying to create two separate sections to my site 'supply' and 'retail'. To create this, I need some navigation items hidden for each side: Supply - 'Shop' navigation item hidden Retail - 'Services' navigation item hidden Is there a code I can use to make this work? Site: meletius-roasters.squarespace.com Password - Meletius22 Many thanks in advance! Edited May 23, 2022 by El1z4b3th Link to comment
tuanphan Posted May 24, 2022 Share Posted May 24, 2022 18 hours ago, El1z4b3th said: Hi all, I need some help hiding navigation items on specific pages only. I'm trying to create two separate sections to my site 'supply' and 'retail'. To create this, I need some navigation items hidden for each side: Supply - 'Shop' navigation item hidden Retail - 'Services' navigation item hidden Is there a code I can use to make this work? Site: meletius-roasters.squarespace.com Password - Meletius22 Many thanks in advance! Actually if you use Business Plan or higher, we can change page url, use this format: /supply/about, /supply/shop,.../retail/services, retail/about Then use script code, to identify if users on a page where the url is /retail/.. will hide the items that the url contains /supply/.. What do you think? 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
El1z4b3th Posted May 24, 2022 Share Posted May 24, 2022 @tuanphan I am using the business plan so sounds like this would do the trick. How would I go about changing the URL? Link to comment
paul2009 Posted May 24, 2022 Share Posted May 24, 2022 14 minutes ago, El1z4b3th said: How would I go about changing the URL? See this post: tuanphan 1 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
El1z4b3th Posted May 26, 2022 Share Posted May 26, 2022 Thanks @tuanphan and @paul2009 I tried: <script>if (window.location.href.indexOf("retail") > -1) {document.getElementsByClassName('header-nav-folder-title.preScale.scaleIn').style.display = 'none';}</script> I have also changed the URL slug into retail so that the if statement is true. I have tested the class with CSS so that the styling works. Would you mind having a look at it and see if I did anything wrong? Also is there a way of changing html class on specific elements in header with squarespace? Just to provide better coding. Thank you! Link to comment
tuanphan Posted May 27, 2022 Share Posted May 27, 2022 22 hours ago, El1z4b3th said: I tried: <script>if (window.location.href.indexOf("retail") > -1) {document.getElementsByClassName('header-nav-folder-title.preScale.scaleIn').style.display = 'none';}</script> I have also changed the URL slug into retail so that the if statement is true. I have tested the class with CSS so that the styling works. Would you mind having a look at it and see if I did anything wrong? Also is there a way of changing html class on specific elements in header with squarespace? Just to provide better coding. Thank you! I think you should use this (remove .preScale.scaleIn) <script> if (window.location.href.indexOf("retail") > -1) { document.getElementsByClassName('header-nav-folder-title').style.display = 'none'; } </script> 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
El1z4b3th Posted May 27, 2022 Share Posted May 27, 2022 Hi @tuanphan many thanks however it didn't work unfortunately! I have tested on both the retail subpage on both the actual website with the the URL-slug “/retail-home” and the squarespace developer tool but it still hasn't pulled through. However, on the “supply” situation since “shop” does not contain subpages it was categorized with the same class as “coffee” with “class = “preScale .scaleIn”” which is why I though if we could change the class of header elements separately that might do the trick? Link to comment
tuanphan Posted May 29, 2022 Share Posted May 29, 2022 On 5/27/2022 at 9:05 PM, El1z4b3th said: Hi @tuanphan many thanks however it didn't work unfortunately! I have tested on both the retail subpage on both the actual website with the the URL-slug “/retail-home” and the squarespace developer tool but it still hasn't pulled through. However, on the “supply” situation since “shop” does not contain subpages it was categorized with the same class as “coffee” with “class = “preScale .scaleIn”” which is why I though if we could change the class of header elements separately that might do the trick? What is your site url? 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
El1z4b3th Posted May 29, 2022 Share Posted May 29, 2022 URL: meletius-roasters.squarespace.com Password: Meletius22 Thanks @tuanphan Link to comment
tuanphan Posted June 1, 2022 Share Posted June 1, 2022 On 5/29/2022 at 4:14 PM, El1z4b3th said: URL: meletius-roasters.squarespace.com Password: Meletius22 Thanks @tuanphan On 5/24/2022 at 1:15 PM, tuanphan said: Actually if you use Business Plan or higher, we can change page url, use this format: /supply/about, /supply/shop,.../retail/services, retail/about Then use script code, to identify if users on a page where the url is /retail/.. will hide the items that the url contains /supply/.. What do you think? Looks like I've come a long way in the direction I intend to guide here. With your code, what is that code for? And which pages are not working? 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment