Support » Themes and Templates » renaming the home tab in twenty eleven

  • Hi there

    I have been reading around looking for a solution – I want to give the Home tab in my new site: http://www.nadaav.com/n a different title. Lots of people in forums have been saying it’s impossible, and you need to do custom menus and so on, but I know that is not the case.

    I have managed this on two previous sites, but it was some time ago and I have forgotten how I did it.

    For example if you see http://www.nadaav.com/soundasleep and http://www.nadaav.com/news – you will see that there is no home tab in either – or rather the home tab has been renamed in both. Neither have custom menus.

    I can’t seem to work out how to do it again though.

    Can anyone remind me how this is done?

    thanks kindly

    SD

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    in your child theme’s functions.php, add some code;

    for example, try this snippet:

    add_action( 'after_setup_theme', 'twentyeleven_child_theme_setup' );
    function twentyeleven_child_theme_setup() {
    add_filter( 'wp_page_menu_args', 'twentyelevenchild_page_menu_args' );
    }
    function twentyelevenchild_page_menu_args( $args ) {
    	$args['show_home'] = 'Welcome!'; // rename 'home' button
    	return $args;
    }

    http://codex.wordpress.org/Function_Reference/wp_page_menu

    thanks – i will give this a try

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘renaming the home tab in twenty eleven’ is closed to new replies.