Jump to content

How can I keep navigation folders expanded by default in the mobile menu (Wells template)?

Recommended Posts

  • Replies 9
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...
On 4/4/2023 at 1:13 PM, jseaberg said:

Hey - I'm looking to do the opposite of this - have the expanded view display on desktop and the condensed view display on mobile. Is it possible? 

Thanks! 

You can use this code

.main-nav li.folder .subnav {
    height: auto !important;
}

 

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
  • 3 months later...
On 8/26/2021 at 10:31 PM, tuanphan said:

Add to Design > Custom CSS

@media only screen and (max-width:800px) {
div#mobileNav {
    height: auto !important;
}
}

 

 

On 8/24/2021 at 11:22 AM, alexisv1222 said:

Site URL: https://www.robertcurranphoto.com/asiandreams-bw

I want the folders to stay expanded by default so each subpage title shows without having to click on the folder to expand the menu 

Is this possible?  screenshot desired expanded view below...

Screen Shot 2021-08-24 at 12.17.36 PM.png

 

On 8/26/2021 at 10:31 PM, tuanphan said:

Add to Design > Custom CSS

@media only screen and (max-width:800px) {
div#mobileNav {
    height: auto !important;
}
}

 

I'm trying to do this exact same thing - however the code is not working for me. I'm trying to do this in Wells 7.0. Site URL is www.saamgabbay.com

Link to comment
15 hours ago, nkelley12 said:

 

 

I'm trying to do this exact same thing - however the code is not working for me. I'm trying to do this in Wells 7.0. Site URL is www.saamgabbay.com

Try this code

#mobileNav .subnav {
    height: auto !important;
}

 

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
11 hours ago, tuanphan said:

Use this new code

#mobileNav .subnav {
    height: auto !important;
}
div#mobileNav {
    height: auto !important;
}

image.thumb.png.0724716725c43870f5244b24aa25e94b.png

I just realized this code is working for the mobile version of the site, is there a way to make this work on the desktop version? If so that would be tremendous!

 

Thanks!

Link to comment
7 hours ago, nkelley12 said:

I just realized this code is working for the mobile version of the site, is there a way to make this work on the desktop version? If so that would be tremendous!

 

Thanks!

It will overlap some content in page content

Add to Design > Custom CSS

#topNav nav .folder .subnav {
    height: auto !important;
}

 

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.