AltitudeDesign Posted December 14, 2020 Share 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 Link to comment
Beyondspace Posted December 14, 2020 Share 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 (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
AltitudeDesign Posted December 15, 2020 Author Share 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 Link to comment
Beyondspace Posted December 15, 2020 Share 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 SimonFlowers, tuanphan and AltitudeDesign 2 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
AltitudeDesign Posted December 15, 2020 Author Share 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 Link to comment
SimonFlowers Posted March 21, 2022 Share 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! Link to comment
CrumpetClubhouse Posted May 25, 2023 Share 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 🙂 Link to comment
tuanphan Posted May 28, 2023 Share 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!) Link to comment
thedowntowncreative Posted October 17, 2023 Share 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 Link to comment
tuanphan Posted October 19, 2023 Share 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!) Link to comment
thedowntowncreative Posted October 19, 2023 Share 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! 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