I assume you are referring to Admin 1 sub theme and you can use below markup to expand all sub menus by default:
<li class=”nav-item open”>
<a class=”nav-link nav-toggle”>
<span class=”title”>UI Features</span>
<ul class=”sub-menu always-open”>……….</ul>
If you need any further clarifications please let us know.
Submenus get closed after page refresh, i need to maintain status/ keep focus on that submenu
I want to expand all sub-menus at sidebar first show.
To maintain the menu state you will need to use server side code to handle the HTML output as per your requirements. I would suggest you to check below tutorials to understand how HTML code can be integrated with server side code in order to produce dynamic pages:
I tried your suggestion but no luck. I want to expand all menu items. How to do it?
Could you please open a new post for your issue and provide follow details:
1) What Metronic version are you using ?
2) Which sub theme are you using(Admin 1 or admin 2, etc) ?
3) Will it be possible to provide us a test link to your page in a private reply so we can check your code online ?
You must be logged in to reply to this topic.