I have a Wordpress site running Flatsome theme where there are some pages with sidebars created using Custom Sidebar plugin which are not showing up on a menu hover. I have try to fix that glitch using jQuery code below
<script>
jQuery(document).ready(function () {
jQuery(".widget_nav_menu .menu-item-has-children").hover(
function () {
jQuery('ul.sub-menu', this).slideDown('medium');
},
function () {
jQuery('ul.sub-menu', this).slideUp('medium');
}
);
});
</script>
which works fine on any computer browser but not on mobile devices (iPhone and iPad) and I have no clue what can cause that.