Jump to content

Display navigation folder items right away on mobile menu

Recommended Posts

I wanted all my navigation options to be under one button, so I added a folder and all my pages within that. It worked great until I checked the mobile version. Now I need to click a button, it takes me to the MENU folder (aka the only option on my nav) and from there I need to click to see my pages.

Im trying to find a way to show the folder items immediately on the mobile menu without requiring an additional clicks, OR just the mobile Squarespace menu display like the desktop version.

 

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Add this to Design > Custom CSS to fix problem on mobile

@media only screen and (max-width: 767px) {
  .header-menu-nav-folder[data-folder="root"] {
    display: none !important;
  }
  .header-menu-nav-folder-content .header-menu-controls {
    display: none;
  }
  .header-menu-nav-folder:not([data-folder="root"]) {
    transform: unset;
    transition: unset;
  }
}

 

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
  • 2 months later...

Hi, 

I have similar problem. I use a megamenu, so in my navigation bar I have just one folder "site map". 

When you hover over it on PC it triggers the mega menu, but on mobile I face the same issue as the OP. I tried using the code @tuanphan provided and changed "menu" to "site-map", but it doesn`t work.  Is there a way to display the folder items immediately on the mobile menu ?

Help.

Edited by kenvelo
Link to comment
On 8/26/2023 at 8:14 PM, kenvelo said:

Hi, 

I have similar problem. I use a megamenu, so in my navigation bar I have just one folder "site map". 

When you hover over it on PC it triggers the mega menu, but on mobile I face the same issue as the OP. I tried using the code @tuanphan provided and changed "menu" to "site-map", but it doesn`t work.  Is there a way to display the folder items immediately on the mobile menu ?

Help.

That code should work. What is your site url? We can check it again easier

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.