Enable dropdowns for all the menus, not main menu only?

Asked on January 26, 2016 in Development.

First of all I thought it’s my Layers child but then I tested Layers only and it was the same situation. Dropdowns work only on the main menu.

Is there any way I can fix this, enable dropdowns for all the Layers menus?

22colle Layers User
Reply
  • Possible Answers to Your Question:

  • 1 Answer(s)
    Answered on February 2, 2016.

    Hi there,

    The top menu is limited to one level for user experience reasons – if the header contains a main menu or other content, drop-downs in the top menu would cover them. It would also add option and design complexity to responsive modes where the top menu is not shown at all.  You would need to implement this in your child theme by modifying the wp_nav_menu arguments in the corresponding templates, ie in header-secondary.php for the Top menu you have:

     wp_nav_menu( array(
      'theme_location' => LAYERS_THEME_SLUG . '-secondary-right' ,
      'container' => 'nav',
      'container_class' => 'pull-right' ,
      'menu_class' => 'nav nav-horizontal',
      'fallback_cb' => FALSE )
    ); 
     

    Where you can add

     'depth' => 1,
     

    wp_nav_menu()

     
    Reply