I am in need of assistance as I am facing the same issue on two WordPress twin websites that are using the same theme (Newmagz), which is no longer purchased and therefore not supported. The submenus in the main menu are simply not appearing. I have checked the code using Chrome's and Safari's DevTools, and I can see that the submenu is there, but I cannot determine why it is not displaying. It appears to be a CSS issue, but despite multiple attempts, I have been unable to pinpoint the problem.
The CSS code governing the hover effect on the main menu is as follows:
$('.site-navigation .menu-item-has-children').on('hover', function() {
$(this).children('.sub-menu').stop().slideToggle('fast');
})
.site-navigation ul li.menu-item-has-children ul.sub-menu {
position: absolute;
display: none;
z-index: 50;
}
.site-navigation > ul > li.menu-item-has-children:hover:before {
position: absolute;
top: 43px;
left: 50%;
}
.site-navigation ul li.menu-item-has-children ul.sub-menu li {
display: inline-block;
width: 100%;
margin-bottom: 0;
}
nav#main-menu.site-navigation ul li.menu-item-has-children ul.sub-menu li:hover a {
background: #c51818;
display: inline-block;
}
Thank you in advance for any assistance!