Menu sidebar not getting active when open any page related
Menu sidebar not getting active when we navigate to different action(page).
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.
- Using function
KTMenu.updateByLinkAttribute(), this function will activate menu items whose href values matches the current url. - Conditionally add active class to currently activated menu items.
class="menu-link without-sub @(IsActive ? "active" : "")"
Regards,
Lauris Stepanovs,
Keenthemes Support Team