Jump to content

Hide a nav item from mobile version only

Recommended Posts

Posted
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 (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
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 (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

  • 1 year later...
Posted
On 12/15/2020 at 6:06 PM, bangank36 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

Thanks so much! This worked!

  • 1 year later...
Posted
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!)

  • 4 months later...
Posted
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 

Posted
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!)

Posted
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!

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.