Mobile Menu – Having Sub-Items Expanded Automatically

This topic has 2 replies, 2 voices, and was last updated 7 years, 2 months ago ago by Rose Tyler

  • Avatar: gpexpert
    Tim
    Participant
    September 12, 2017 at 18:01

    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

    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 13, 2017 at 09:05

    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

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.