Jump to content

Remove dropdown folder from mobile menu and just have links

Recommended Posts

Hello...On desktop I have my navigation links in a drop-down folder to make everything clean looking, however on mobile when you click on the hamburger you get the folder appear and then you have to click again to see the links. I'd love to take this step out and just have the links show up when the hamburger is clicked. I attached my current view and what i'm looking to do with a site already doing it for inspo. Thanks!

 

 

Link to comment
  • Replies 1
  • Views 609
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hey @SoSwellTanya, you'll want to add all links to your Main Navigation (Dropdown & Separate Links) and then use CSS to hide the individual links on Desktop, and the Dropdown on Mobile.

@media only screen and (min-width: 767px) {
  .header-nav-item:nth-of-type(2), .header-nav-item:nth-of-type(3), .header-nav-item:nth-of-type(4) {
    display: none;
  }
}

@media only screen and (max-width: 766px) {
  .header-menu-nav-item:nth-of-type(1) {
    display: none;
  }
}

 

Squarespace Developer based in Hampshire, England

If you'd like to make a contribution for my time you can Buy Me A Coffee.

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.