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 wordpress 3.4.1.
I am mainly creating a static site and for that have created and arrnaged the pages, and wordpress has nicely created the pages in proper nav-menu format for me, which is good.
But, it has also added a link to 'Home' in the nav-menu. How can i remove that?

NOTE: I prefer any other answer than using the menu section and creating a new menu and assigning it as primary menu.

share|improve this question
yep! this works... – rajankz Aug 23 '12 at 23:52
up vote 0 down vote accepted

Here's a good solution posted over at .org


You can remove the "Home" link using a filter. Add this to your Theme's functions.php file:

   function mytheme_nav_menu_args( $args ) {
       $args['show_home'] = false;
       return $args;

add_filter( 'wp_nav_menu_args', 'mytheme_nav_menu_args' );

And if you want to remove the "Home" link from the default fallback menu, add another filter:

   add_filter( 'wp_page_menu_args', 'mytheme_nav_menu_args' );
share|improve this answer
Okay, but happens when that solution doesn't work either? – user19765 Aug 28 '12 at 2:48
@toscho Thanks for the edit. – Brian Fegter Aug 28 '12 at 4:31
@Shawn This is an accepted solution. Are you implementing it properly? – Brian Fegter Aug 28 '12 at 4:38

protected by Community Aug 28 '12 at 23:46

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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