How to change Home link from menu

  • Author
    Posts
  • #390367

    bogdansbg
    Member

    I see that many people tried to remove or change this Home button/link from any template or theme for WordPress and I thought many people will benefit from this one.

    So, in order to Change the name of Home button go to:

    wp-includes/post-template.php

    look for:
    ———————————-
    // Show Home in the menu
    if ( isset($args[‘show_home’]) && ! empty($args[‘show_home’]) ) {
    if ( true === $args[‘show_home’] || ‘1’ === $args[‘show_home’] || 1 === $args[‘show_home’] )
    $text = __(‘Home’);
    ———————————–
    Do you see last “Home” text ? :D There you go, change it to whatever you want.

    Problem solved.

    #390602

    @bogdansbg, we cannot access or modify the underlying theme or wordpress files here at wordpress.COM, so your solution will not work here.

    See this support document for the differences between .COM and .ORG blogs: http://support.wordpress.com/com-vs-org/

The topic ‘How to change Home link from menu’ is closed to new replies.