[resolved] Rename "home" page not using custom menu or static home page (3 posts)

  1. Lorken
    Posted 4 years ago #


    I am using WP TwentyEleven theme as a base for my childtheme and would like to change title of the page "Home" to "Start". Most of the answers I found for this involves using custom menues or repalcing the "Home" page with a static frontpage.

    Unfortunately I do not want to use any of these options. With custom menus I loose the "drop down" function which hightlights my menu for childpages. And I don't want to make home a static page since the posts should be shown there. I would be more than happy if anyone could help me on this.

    This is the page: http://wptest.lldancestudio.se/

    Any suggestions?

    Thank you


  2. Steven Jones
    Posted 4 years ago #

    You've got two options

    1) Remove this from functions.php:

     * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
    function twentyeleven_page_menu_args( $args ) {
    	$args['show_home'] = true;
    	return $args;
    add_filter( 'wp_page_menu_args', 'twentyeleven_page_menu_args' );

    and then replace:

    wp_nav_menu( array( 'theme_location' => 'primary' ) );


    wp_page_menu( array( 'show_home' => 'Start', 'sort_column' => 'menu_order' ) );

    in header.php

    2) Use wp_nav_menu and then use this plugin:


    To make sure that they have a 'current' state when they're on a sub page.


  3. Lorken
    Posted 4 years ago #

    Great, thanks for your help! That was just the kind of answer I needed. I havenĀ“t been here for a while and saw your post just now. The first option worked out perfectly and I'm sure the second one will be of great use in the future.

Topic Closed

This topic has been closed to new replies.

About this Topic