Created
March 16, 2021 11:44
Star
You must be signed in to star a gist
Elementor PRO smartmenus.js - show submenu on click instead of hover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($) { | |
$('.elementor-nav-menu').on('beforeshow.smapi', function(e, menu) { return false; }); | |
$('.menu-item-has-children > a').attr('href', 'javascript:void(0);'); | |
$('.menu-item-has-children > a').click(function() { | |
$(this).parent().find('.sub-menu').toggle(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment