Secondary Menu sub-menu not showing
-
I have a Secondary Menu on a site I am developing. This menu has some sub-menu items that are not functioning the same as on the Primary Menu, that is to say, they are visible all the time, not hidden until clicked. I am unable to click on the parent link to show/hide sub-menu.
This is the code that initialises the primary menu:
<?php wp_nav_menu( array( 'theme_location' => 'menu-1', 'menu_id' => 'primary-menu', ) ); ?>
This is the code for the secondary menu:
<?php wp_nav_menu( array( 'theme_location' => 'menu-2', 'menu_id' => 'secondary-menu', ) ); ?>
Looking at the source code the Primary Menu iinitialises as:
<ul id="primary-menu" class="menu nav-menu">flex
The secondary menu initialises as:
<ul id="secondary-menu" class="menu">
I’m assuming the missing “nav-menu” class is the reason the Secondary Menu isn’t functioning in the same way as the Primary Menu (ie submenu hidden until parent link is clicked)?
Can anyone advise what I have missed?
- The topic ‘Secondary Menu sub-menu not showing’ is closed to new replies.