• Hi, I want to auto expand sub menu items in the off canvas panel widget. I can toggle the sub menus using jquery which expands the submenu items of navigation assigned from the menu section. But I have to expand the sub-menu items for the navigation menu added from the widget section. It expands but I do not know the exact css to display the elements properly.
    Here is the jquery to toggle the sub-menu

        jQuery( document ).ready( function($) {
            
                $( '.menu-item.menu-item-has-children' ).addClass( 'sfHover' );
                $( '.sub-menu' ).addClass( 'toggled-on' );
    
          
        } );

    Can you please guide, how to do it properly using jquery and css or another way.
    Also, once the menu is closed, it does not expand again. However, I want to expand it every time.

    • This topic was modified 3 years, 10 months ago by Imran Kanjoo.

    The page I need help with: [log in to see the link]

  • The topic ‘Auto Expand sub menu items, navigation added from widget’ is closed to new replies.