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

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" : "")"

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

React Dev Vacancy

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