Jump to content

Removing a page from a navigation folder on mobile only.

Recommended Posts

Posted

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.

  • Replies 3
  • Views 465
  • Created
  • Last Reply
Posted
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

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

Archived

This topic is now archived and is closed to further replies.

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