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

React Dev Vacancy

KeenThemes is looking for a Junior React or Vue developer to build awesome apps.
Apply
keenthemes mega bundle