WordPress.org

Support

Support » Themes and Templates » [Resolved] Rename "home" page not using custom menu or static home page

[Resolved] Rename "home" page not using custom menu or static home page

  • Hi,

    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

    /Lorken

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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' ) );

    with

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

    in header.php

    2) Use wp_nav_menu and then use this plugin:

    http://wordpress.org/extend/plugins/menu-rules/

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

    Cheers.

    Lorken
    Member

    @lorken

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Rename "home" page not using custom menu or static home page’ is closed to new replies.