WordPress.org

Support

Support » How-To and Troubleshooting » working with wp_nav_menu

working with wp_nav_menu

  • Hey, I’m having an issue working with wp_nav_menu, I’m trying to create my own Theme for WP, now i’ve putted that code into my functions.php file,

    function register_my_menu() {
      register_nav_menu('header-menu',__( 'Header Menu' ));
    }
    add_action( 'init', 'register_my_menu' );

    as the guide said, and now when I’m trying to combine it into my design, the paramters I pass in the wp_nav_menu function doesn’t really do anything, and I dont really understand why, I tried to play with it but it doesnt seem like something gets changed.

    wp_nav_menu( array( 'items_wrap'      => '<ul id="danny" class="danny">%3$s</ul>','theme_location' => 'header-menu' ) );

    it doesnt metter what I do, what I add as a paramter the output stays as it is, anyone has anyidea? am I missing something?

    thanks!

Viewing 1 replies (of 1 total)
  • Andrew Bartel
    Member

    @andrew-bartel

    Have you verified that Header Menu is showing up as a registered location under Appearance > Menus? Did you add an menu to that location?

Viewing 1 replies (of 1 total)
  • The topic ‘working with wp_nav_menu’ is closed to new replies.