Menu only showing 2 levels. Activello Theme
-
Howdy,
I created a menu that has 3 levels. Top level and 2 sub levels. However, only the top level and the first set of sub menu items show up.
I found the following code in one of the PHP files that has the depth hard coded to 2.
function activello_header_menu() { // display the WordPress Custom Menu if available wp_nav_menu(array( 'menu' => 'primary', 'theme_location' => 'primary', 'depth' => 8, 'container' => 'div', 'container_class' => 'collapse navbar-collapse navbar-ex1-collapse', 'menu_class' => 'nav navbar-nav', 'fallback_cb' => 'wp_bootstrap_navwalker::fallback', 'walker' => new wp_bootstrap_navwalker() )); } /* end header menu */
I changed the depth to a higher value and now the sub menu items show up but they are directly below the 2nd level item and when I move my mouse to them they disappear.
Anyone have any idea what else I can look for to make this work the “normal” way?
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Menu only showing 2 levels. Activello Theme’ is closed to new replies.