Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #532029

    Hi, it seems that no matter what title I give my homepage, in the breadcrubms it always shows as homepage – http://screencast.com/t/nVyS2R4Q0URw

    How can I change that to show the actual homepage title?

    #532247

    Hey DROR!

    I really do not understand, which is the home, to be honest with you.

    Regards,
    Basilis

    #532260

    I get it as the site isn’t in English. Let me ask it again, can I change the breadcrumbs so it won’t show “Honepage” but something else like the actual home page title?

    #533408

    Hi!

    You can find that on line 189 in the /enfold/framework/php/class-breadcrumbs.php file.

    'show_home' => __( 'Home', 'avia_framework' ),
    

    Cheers!
    Elliott

    #533431

    OK, and what do I need to change there in order for it to show something else other than “home page”?

    #534299

    Hi!

    Just change the “Home” text in the line. And you can change the URL on line 210.

    $trail[] = '<a href="' . home_url() . '" title="' . esc_attr( get_bloginfo( 'name' ) ) . '" rel="home" class="trail-begin">' . $show_home . '</a>';
    

    To..

    $trail[] = '<a href="http://www.yoursite.com" title="' . esc_attr( get_bloginfo( 'name' ) ) . '" rel="home" class="trail-begin">' . $show_home . '</a>';
    

    Best regards,
    Elliott

    #534314

    Great. thanks.

    #534595

    Hey!

    Instead of modifying the file, please use this in the functions.php file:

    add_filter( 'avia_breadcrumbs_args', 'avia_breadcrumbs_args_mod', 10, 1 );
    function avia_breadcrumbs_args_mod($args)  {
    	$args['show_home'] = 'YOUR NEW HOME TEXT HERE';	
    	return $args;
    }
    

    Adjust the “show_home” value.

    Best regards,
    Ismael

    #534641

    Awesome! Thanks.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘How to change the homepage name in the breadcrubms?’ is closed to new replies.