Jump to content

Hide the first item in dropdown - 7.0

Go to solution Solved by tuanphan,

Recommended Posts

Hi,

I have a dropdown menu on my site: www.glasbenasolamake.si under secondary nav link Cenik. However, if you click on the link itself it takes you to the first dropdown item, while I would like it to go to a separate page, where all menu items are listed again. I read about the CSS option to have the first menu item hidden (and that being the page where it takes you after clicking the menu) and tried a couple, but none of them seem to work.

I appreciate your help!

Link to comment
On 7/18/2024 at 7:00 PM, MajaMaKe said:

That's amazing, Tuanphan! On mobile it stays, though; can this be done on mobile too?

You can use this CSS code for mobile

.Mobile-overlay-folder.is-active-folder>a:nth-child(2) {
    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

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.