Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #351166

    weechoochter
    Participant

    Hi, is it possible to expand the mobile menu by default but only the top level and not everything or even everything so I can choose which is best. Is there a code for this?
    Thanks very much

    #351265

    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! To expand the mobile menu by default you’ll need to add the following jQuery script in your Customizer via Appearance > Customize > Custom > Javascript

    jQuery(document).ready(function($){
    	$('.x-nav-wrap.mobile').addClass("in");
    });

    Don’t forget to clear your browser’s cache after adding the code.

    Let us know how this goes!

    #353503

    weechoochter
    Participant

    It worked perfectly. Thanks.
    Is there a way to get it to completely expand?

    #353507

    Christopher
    Moderator

    Hi there,

    Please add this as well :

    jQuery(".sub-menu.collapse").addClass("in").css("height","auto");

    Hope it helps.