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.
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.
$('.navbar .item').on("click", function() {
$('.navbar .item').removeClass('active');
$(this).addClass('active');
});
Original Community Post:
Was this page helpful?
Something wrong or missing on this page? Tell us.