Title: wp_nav_menu();
Last modified: August 20, 2016

---

# wp_nav_menu();

 *  [licensetokode](https://wordpress.org/support/users/licensetokode/)
 * (@licensetokode)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/wp_nav_menu-5/)
 * 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.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [licensetokode](https://wordpress.org/support/users/licensetokode/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/wp_nav_menu-5/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
