• Resolved cesbloggan

    (@cesbloggan)


    Hi,
    I did a search for this but only found posts with too old versions of WP.

    I am having a Page as index-page for the site I am working on. In the #access menu I don’t want the word “Home” to appear though but rather someyhting else, like Start.

    I have easily found the place to change it in versions previous to WP 3 (with Twenty-Ten) but now I just don’t manage.

    It is also a language question since I have another language-version than English installed but in this case the site itself will be in English.

    Anyone out there to help? 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • Is the theme using WordPress menus or are the menus hardcoded into the theme?

    If you can control them from Appearances > Menus, look in the active menu for “Home” and click the arrow to its right. This will open that menu item’s options. You’ll see a place where you can edit the label that’s displayed so it’s something other than Home.

    Another solution would be to change the name of the page Home to Start or whatever in the Pages section.

    If neither of those work, look in the theme files for where the navigation is being generated (typically in header.php) and share the code so I can troubleshoot it.

    Thread Starter cesbloggan

    (@cesbloggan)

    Hi, thanks for answering. 🙂 Since this is the #access menu (and no I haven’t hardcoded it ) that displays all pages created automatically, this menu doesn’t actually appear in Appearances > Menus.

    The change can’t be done directlöy in the header I think. This is the code part where it lies though:

    <?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */ ?>
    				<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>

    I think it must be referenced in “nav-menu-template.php” but I don’t know php well enough to change the code there. And I can’t (of course) really see where it calls the language-version..
    I think it comes around line 191 in nav-menu-template.php…
    The translation is residing elsewhere though.

    I have already changed the page’s name to Start but it doesn’t change the menu-name which is fine since I will redo that page entirely later on ( I won’t even have an entry-title there). I still want the menu to display Start!

    Please get back if I am not clear enough.

    If you create a menu in Appearances > Menus and assign it to the “Primary” location it will be used. If you don’t create a menu (which from your comments you haven’t) it uses wp_page_menu(): http://codex.wordpress.org/Function_Reference/wp_page_menu

    I’m not sure where the parameters for wp_page_menu are being defined, but including “Home” is off by default, so it must be defined somewhere.

    The easy solution is to go to Appearances > Menus and create a menu. That way you’ll have complete control of what shows up and how it’s labeled.

    Thread Starter cesbloggan

    (@cesbloggan)

    OK, I thought so, only it’s quite handy to just have the menu items appear by themselves..
    🙂
    Thanks!

    susanwong

    (@susanwong)

    Hi, not sure if the problem has been resolved yet. But if you’re looking to change the “Home” link on the navigation to say something different, it’s in the functions.php (I’m using the twentyten theme so it might be different for you if ur using a different theme)
    look for this:
    function twentyten_page_menu_args( $args ) {
    $args[‘show_home’] = true;
    return $args;
    }

    and change where it says true to what to whatever you want it to say e.g.:
    function twentyten_page_menu_args( $args ) {
    $args[‘show_home’] = ‘Start’;
    return $args;
    }

    Don;t know if this helps, but hope it does!

    That is such a huge help, thank you!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to change "Home" in menu to another word.’ is closed to new replies.