-
Notifications
You must be signed in to change notification settings - Fork 867
Mobile Menu Accordion Menu - Expand "active" submenu parent automatically #822
Comments
See if this helps you out: http://foundation.zurb.com/forum/posts/21440-accordion-expand-all-on-load http://foundation.zurb.com/forum/posts/21440-accordion-expand-all-on-load
|
Thanks @AdamChlan - though, I think the solution in that thread is not compatible with Foundation 6. This is the solution I found that works with the Foundation 6 Accordion Menu: $(window).load(function() { |
"To have a sub-menu already open when the page loads, add the class .is-active to that sub-menu." |
@thomasfrobieter thank you, I was setting it to the |
If you need to do it manually, you can use this code (tested with Foundation 6.4.3) : |
Is there a way to make menu-items with the "active" and "is-accordion-submenu-parent" classes automatically be expanded when the page loads?
It would be more convenient for viewers if the active menu item in the vertical accordion menu would just be open by default, but I can't figure out where or how to edit the code to make this happen.
Thanks in advance for any suggestions!
The text was updated successfully, but these errors were encountered: