Skip to content

Instantly share code, notes, and snippets.

@flymke
Created March 16, 2021 11:44
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save flymke/00ef78211ae0bc2558d883aee6c67130 to your computer and use it in GitHub Desktop.
Elementor PRO smartmenus.js - show submenu on click instead of hover
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