wp_nav_menu();
-
Hi all,
<?php wp_nav_menu( array('container_class' => 'menu-header', 'items_wrap' => '<ul class="sf-menu">%3$s') ); ?>I’m using the above to display a JavaScript drop down menu, the “sf-menu” class is critical for the menu to work correctly.
Everything works fine when I create my own menu in the WordPress backend and add items to it.
However when I import test data and the menu just reads the pages/categories directly the “sf-menu” class is not added to the ul tag which breaks the JavaScript drop down.
What am I missing?
Appreciate any help, thanks.
The topic ‘wp_nav_menu();’ is closed to new replies.