• When using multilevel (2 or 3 levels) navigation, when user clicks sub menu link, current navigation item isn’t show because parent navigation is closed, so user have to press again widget toggler link.

    Dirty way to fix this:

    
    (function($) {
    
            $( document ).ready(function() {
                   $( "li.current_page_item" ).each(function( index ) {
                      $(this).parent('.sub-menu').slideToggle('fast');
                      $(this).parent().parent('.sub-menu').slideToggle('fast');
                    });
    
                    $( "li.current-menu-parent" ).each(function( index ) {
                      $(this).parent('.sub-menu').slideToggle('fast');
                    });
    
            });
    })(jQuery);
Viewing 2 replies - 1 through 2 (of 2 total)
  • That’s very helpful. Do you know how you would modify, or add code so that also when you click a parent the sub-menu opens out. At the moment on Easy Sidebar Menu you click the parent and the sub menu is still hidden.

    Thanks

    Thread Starter wptuki

    (@wptuki)

    Sorry Caleb, I don’t have solution or time to check for this sub-menu opening.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parent navigation doesn’t open when visiting navigation sub items’ is closed to new replies.