Custom menu w dropdown
-
I have added a custom menu to my header: by adding this in my theme functions file: add_theme_support( ‘menus’ );
I then add this code in my header:
<?php wp_nav_menu( array(‘menu’ => ‘navigation’,)); ?>
Great the right menu shows up. However I can’t get it to show the subpages/categories that I have in my custom menu. I know I need to do something with depth=1 but I just can’t figure out how to get it to work.
I had: <?php wp_nav_menu( array(‘menu’ => ‘navigation’, ‘depth’=>’1’ )); ?>
but that doesn’t work.
anyone knows hoew to do this?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom menu w dropdown’ is closed to new replies.