Accordion Menu / Posts /

Close all menu item without opening

2
Hello.
I am testing your code, and every time I load the page, it opens the last menu item automatically.
I used amenu.close(true); to close... it worked, but I can see the menu closing.
Is there a way to load this menu with all menu items closed by default?


Kurogaza  9 years ago   viewed: 6692    

2 Answers

0

The root cause of the default opening issue is that the current page URL is matching the opened menu item link. The accordion menu will open the item if its link is matching the page URL.

The amenu.close() has animation and there is no workaround to turn it off.

If the page URL does not exactly match the opened menu item, but similar, the amenu will take it as the best fit and open it. You can add an menu item that match better to the current page URL, and set the menu item invisible(<li style="display:none;">...</li>. Then you won't see the open and close.

Milo   9 years ago
0

Thanks. The invisible idea is working!

Kurogaza   9 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: