help with menu!

[ad_1]

Hi all,

I am trying to change the functionality of this custom built mega menu and currently it opens and closes the dropdown on click. I need to change it to hover functionatlity but right now everything I’ve tried doesn’t allow for the dropdown to stay open when I try to go to one of the submenu items…

current javascript:

$(‘.navigation-desktop h5’).mouseenter(function(){
$(this).toggleClass(‘active’).siblings().removeClass(‘active’);
$(this).next().toggleClass(‘show’).siblings().removeClass(‘show’);
if ($(“.dropdown-menu”).hasClass(“show”)) {
$(“#PureChatWidget”).hide();
} else {
$(“#PureChatWidget”).show();
}
});

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer