Advertisement
fauzanjeg

JKIT || Add Current Menu Features to Anchor Menu

Jan 13th, 2025
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // JKIT || Add Current Menu Features to Anchor Menu
  2. (function ($) {
  3.     $(window).on('load', function () {
  4.         const menu_link = $('.elementor-element.elementor-element-dbfa965 .jeg-elementor-kit.jkit-nav-menu .menu-item');
  5.  
  6.         menu_link.on('click', function () {
  7.             $(menu_link).removeClass('current-menu-item');
  8.             $(this).addClass('current-menu-item');
  9.         });
  10.     });
  11. })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement