This topic has 2 replies, 2 voices, and was last updated 7 years, 2 months ago ago by Rose Tyler
Hi,
Now a user has to click the + button on my mobile menu to open the sub-menu items. Can I have that sub-menu open by default?
Here’s a screenshot of what I mean: https://screencast.com/t/8ly6NjPv8OH
Thanks,
Tim
Hello,
In our theme not such possibility by default, so please note that such question requests additional customization which is beyond our basic support scope.
You may add this code in function.php file of your child theme https://prnt.sc/gfb65z:
wp_enqueue_script('child-theme', get_stylesheet_directory_uri().'/etheme-child.js',array(),false,true);
then create etheme-child.js file in your child theme and add this code:
jQuery(document).ready(function(){
jQuery('.icon-reorder').on('click', function(event) {
jQuery('li.menu-item-has-children').addClass('over').find('.sub-menu').slideDown(0);
});
});
Regards
You must be logged in to reply to this topic.Log in/Sign up