Jump to content

Removing a page from a navigation folder on mobile only.

Recommended Posts

Site URL: https://www.warners-stores.co.uk

I have a folder in my nav bar that displays the stores for a brand I'm working with. On desktop you can click on the name of the folder and it takes you to the first page in the folder, but also hides the first page when you hover over the folder. However on mobile this obviously doesn't work as you can't hover.

My question is; how can I hide the first page in the folder on mobile only, and leave the desktop version working as it is. 

Thanks in advance for your help! The site is: www.warners-stores.co.uk

And the functionality is under the stores tab.

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

2 hours ago, louis1996 said:

Site URL: https://www.warners-stores.co.uk

I have a folder in my nav bar that displays the stores for a brand I'm working with. On desktop you can click on the name of the folder and it takes you to the first page in the folder, but also hides the first page when you hover over the folder. However on mobile this obviously doesn't work as you can't hover.

My question is; how can I hide the first page in the folder on mobile only, and leave the desktop version working as it is. 

Thanks in advance for your help! The site is: www.warners-stores.co.uk

And the functionality is under the stores tab.

You can add to Home > Design > Custom Css

@media only screen and (max-width: 800px) {
  /*Hide All in Mobile*/
  [data-folder] .header-menu-nav-item:nth-child(2) {
    display: none;
  }
}

.header-nav-list .header-nav-folder-content div.header-nav-folder-item:first-child {
  /*Show all in desktop*/
  display: block;
}

Support me by pressing 👍 if this useful for you

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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

Desktop

image.thumb.png.69a10feedb9bba6c400bf8c69f58163a.png

Mobile:

image.png.ef10047df721491114d964b39ad73f66.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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 hour ago, bangank36 said:

You can add to Home > Design > Custom Css

@media only screen and (max-width: 800px) {
  /*Hide All in Mobile*/
  [data-folder] .header-menu-nav-item:nth-child(2) {
    display: none;
  }
}

.header-nav-list .header-nav-folder-content div.header-nav-folder-item:first-child {
  /*Show all in desktop*/
  display: block;
}

Support me by pressing 👍 if this useful for you

@bangank36 That's brilliant, thank you so much for your help!

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.