Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I use Bones theme with a static front page. The header.php calls the bones_main_nav() function without parameters, while bones_main_nav() only calls the wp_nav_menu() function.

share|improve this question
    
Do you have any menus defined in Appearance -> Menus? –  Pat J May 29 '13 at 13:04
    
@PatJ No, I haven't touched that. –  Gergő May 29 '13 at 13:07
add comment

1 Answer

up vote 0 down vote accepted

wp_nav_menu with no arguments and no menus defined in the back end at wp-admin->Appearance->Menus (which sounds like the circumstance you describe) just lists your pages, plus a "Home" link.

That is done by calling wp_page_menu, the default callback for wp_nav_menu, which means that under those conditions you can alter that text by hooking to wp_page_menu_args and setting, or changing, the show_home argument.

function alter_default_home_link_wpse_1011444($args) {
  $args['show_home'] = 'Home is where the heart is';
  return $args;
}
add_filter( 'wp_page_menu_args', 'alter_default_home_link_wpse_1011444');
share|improve this answer
add comment

Your Answer

 
discard

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.