Jump to content

How do I hide an item inside a folder on mobile?

Recommended Posts

Site URL: https://aperture-22.squarespace.com/

Hello, I need to hide some pages within mobile folder navigation. I have had success on desktop (I'm hiding the first page in 'what we do' and also the first page in 'book online'). They are the only two first pages I would like to hide.

I have tried using this code to do the same on mobile:

a.Mobile-overlay-folder-item:nth-child(2) {

  display: none;

}

This however, hides all first pages within mobile view and I do not want it to do so. I only want the first page in 'what we do' and 'book online' hidden on mobile.

Thanks in advance.

Screen Shot 2020-09-07 at 9.20.34 am.png

Screen Shot 2020-09-07 at 9.20.45 am.png

Screen Shot 2020-09-07 at 9.20.59 am.png

Screen Shot 2020-09-07 at 9.35.06 am.png

Link to comment
  • Replies 8
  • Views 1.2k
  • Created
  • Last Reply
  • 4 months later...
On 1/26/2021 at 10:31 AM, samantha4 said:

@tuanphan Could you help me with a similar problem? I am trying to hide several of the items (preventative care - dental emergencies) under "SERVICES" on mobile only.

site https://avocado-round-p88p.squarespace.com/
password : letstalk

Thank you!

Add to Design > Custom CSS

a.Mobile-overlay-folder-item[href*="preventative-care"], a.Mobile-overlay-folder-item[href*="dental-emergencies"] {
    display: none;
}

 

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

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.