Jump to content

Hide a nav item from mobile version only

Recommended Posts

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

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
2 hours ago, AltitudeDesign said:

Url is https://chancesschool.squarespace.com and pass is “preview” 

im on 7.1

thanks so much 

image.png.c1a6bd17000c3e3df962c25f9e0a84dc.png

.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

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
  • 1 year later...
  • 1 year later...
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
  • 4 months later...
On 12/15/2020 at 5:06 AM, Beyondspace said:

image.png.c1a6bd17000c3e3df962c25f9e0a84dc.png

.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
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

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.