WordPress: Changing the default home page title in the navigation menu (Twenty-Ten theme)

Today, while working on a WordPress website, I noticed that when I selected a static page of the site to be the home page, it automatically re-named the page “Home” in the navigation menu rather than keeping the original title of the page.

To solve this, I opened the functions.php file in the admin panel. Then I found this block of code:

function twentyten_page_menu_args( $args ) {
 $args['show_home'] = true;
 return $args;
}
add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' );

I erased that block of code and saved the file. Now the page shows the title I gave it in the navigation menu – problem solved!

Let me know if you are running into the same issue I was and this tip doesn’t help you, and I’ll try to help you.

Related Posts:

2 Responses to “WordPress: Changing the default home page title in the navigation menu (Twenty-Ten theme)”

  1. hi there,

    the code didn’t work with me, any other way ?!

    • Libby Fisher says:

      Hi,

      Yes, this line of code works specifically for the Twenty Ten theme so I am not sure it will work for other themes.

      For the theme you are using (which appears to be Cover WP), you will want to open the functions.php file. Find this block of code:

      Here is the text file with the line of code you need to find if you want to copy it: function code.

      Once you find that block of code in your functions.php file, simply change the word Home to whatever you want the home page to be called.

      Please let me know if that doesnt work. Thanks for commenting!

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">