Keep Active Menu Item Highlighted

Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add…

  • Not yet re-checked
  • Classic builder

Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

Screenshot for “Keep Active Menu Item Highlighted”

When working with the Menu Component, you may decide to keep the active menu item highlighted, as shown in the GIF above.

One Easy Step

Add the following Code to the JavaScript tab of your layout or page where your menu is located.

Text
$('.navbar .item').on("click", function() {
    $('.navbar .item').removeClass('active');
    $(this).addClass('active');
});
Screenshot for “Keep Active Menu Item Highlighted”

Original Community Post:

Keep active menu item highlighted/active state - Community Discussions / Tips and Tricks - Tadabase Community

Was this page helpful?

Something wrong or missing on this page? Tell us.