WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the following code for my navigation structure. Currently it shows a home link in the navigation. Why does this show? and how would I get rid of it by changing this code.

<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location'=> 'primary' ) ); ?>
share|improve this question

it shows the home link cause you don't have anything set yet...

go to your functions.php and add this code

 add_theme_support( 'menus' );
  if ( function_exists( 'register_nav_menus' ) ) {
          'header_menu' => 'Header Menu'



Go to Apparence and then get into Menu option... Create a menu set the pages/links/categories or whatever you want on it. Make sure you set the menu you just created in the dropdown list you have on top left in that panel. That should be enough to call the menu you want where you set the code you have.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.