Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Menu sidebar not getting active when open any page related


Menu sidebar not getting active when we navigate to different action(page).


Text formatting options
Submit

Replies (1)


Hi Panha,

Thank you for reaching out to us.

This is not implemented by default. There are two options on how you can activate currently enabled menu item.

  1. Using function KTMenu.updateByLinkAttribute(), this function will activate menu items whose href values matches the current url.
  2. Conditionally add active class to currently activated menu items. class="menu-link without-sub @(IsActive ? "active" : "")"



Regards,
Lauris Stepanovs,
Keenthemes Support Team
Text formatting options
Submit
Text formatting options
Submit