AltitudeDesign Posted December 14, 2020 Posted December 14, 2020 I have the code for removing from desktop and showing on mobile only but the reverse doesn't seem to work for hiding a nav item from mobile nav? @media(max-width: 768px) { .header-nav-item--folder:nth-of-type(2) { display: none !important; } } Beyondspace 1
Beyondspace Posted December 14, 2020 Posted December 14, 2020 2 hours ago, AltitudeDesign said: I have the code for removing from desktop and showing on mobile only but the reverse doesn't seem to work for hiding a nav item from mobile nav? @media(max-width: 768px) { .header-nav-item--folder:nth-of-type(2) { display: none !important; } } what is your site url so we can provide code for the template AltitudeDesign 1 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
AltitudeDesign Posted December 15, 2020 Author Posted December 15, 2020 9 hours ago, bangank36 said: what is your site url so we can provide code for the template Url is https://chancesschool.squarespace.com and pass is “preview” im on 7.1 thanks so much Beyondspace 1
Beyondspace Posted December 15, 2020 Posted December 15, 2020 2 hours ago, AltitudeDesign said: Url is https://chancesschool.squarespace.com and pass is “preview” im on 7.1 thanks so much .header-menu-nav-list [data-folder="root"] .header-menu-nav-folder-content > div:nth-child(1) { display: none !important; } You made a good site with blob animation AltitudeDesign, SimonFlowers and tuanphan 2 1 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
AltitudeDesign Posted December 15, 2020 Author Posted December 15, 2020 1 hour ago, bangank36 said: .header-menu-nav-list [data-folder="root"] .header-menu-nav-folder-content > div:nth-child(1) { display: none !important; } You made a good site with blob animation Thanks so much my friend tuanphan and Beyondspace 2
SimonFlowers Posted March 21, 2022 Posted March 21, 2022 On 12/15/2020 at 6:06 PM, bangank36 said: .header-menu-nav-list [data-folder="root"] .header-menu-nav-folder-content > div:nth-child(1) { display: none !important; } You made a good site with blob animation Thanks so much! This worked!
CrumpetClubhouse Posted May 25, 2023 Posted May 25, 2023 Hello! Can you tell me what I need to do to hide a page in the desktop nav but have it show on mobile nav? I see some code above but don't know what it means or does! Cheers 🙂
tuanphan Posted May 28, 2023 Posted May 28, 2023 On 5/25/2023 at 12:28 PM, CrumpetClubhouse said: Hello! Can you tell me what I need to do to hide a page in the desktop nav but have it show on mobile nav? I see some code above but don't know what it means or does! Cheers 🙂 If you use SS 7.1, you can use this code div.header-nav-item:nth-child(3) { display: none; } This will hide nav item 3 from left to right Do similar with other items. 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!)
thedowntowncreative Posted October 17, 2023 Posted October 17, 2023 On 12/15/2020 at 5:06 AM, Beyondspace said: .header-menu-nav-list [data-folder="root"] .header-menu-nav-folder-content > div:nth-child(1) { display: none !important; } You made a good site with blob animation This used to work for me but now it does not. How should I edit it to work again? I've got: // HIDE HEADER NAV LINKS ON MOBILE // .header-menu-nav-list [data-folder="root"] .header-menu-nav-folder-content > div:nth-child(3) { display: none !important; } .header-menu-nav-list [data-folder="root"] .header-menu-nav-folder-content > div:nth-child(5) { display: none !important; } Is it that they aren't folders that I want to hide? Many thanks ahead of time on this! _ https://fplegal.squarespace.com no password
tuanphan Posted October 19, 2023 Posted October 19, 2023 On 10/18/2023 at 12:35 AM, thedowntowncreative said: This used to work for me but now it does not. How should I edit it to work again? I've got: // HIDE HEADER NAV LINKS ON MOBILE // .header-menu-nav-list [data-folder="root"] .header-menu-nav-folder-content > div:nth-child(3) { display: none !important; } .header-menu-nav-list [data-folder="root"] .header-menu-nav-folder-content > div:nth-child(5) { display: none !important; } Is it that they aren't folders that I want to hide? Many thanks ahead of time on this! _ https://fplegal.squarespace.com no password Use this code // HIDE HEADER NAV LINKS ON MOBILE // .header-menu-nav-list [data-folder="root"]>div:first-child>div>div:nth-child(3) { display: none !important; } .header-menu-nav-list [data-folder="root"]>div:first-child>div>div:nth-child(5) { display: none !important; } 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!)
thedowntowncreative Posted October 19, 2023 Posted October 19, 2023 6 hours ago, tuanphan said: Use this code // HIDE HEADER NAV LINKS ON MOBILE // .header-menu-nav-list [data-folder="root"]>div:first-child>div>div:nth-child(3) { display: none !important; } .header-menu-nav-list [data-folder="root"]>div:first-child>div>div:nth-child(5) { display: none !important; } Works great! Thank YOU so much!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment