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?
Hey DROR!
I really do not understand, which is the home, to be honest with you.
Regards,
Basilis
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?
Hi!
You can find that on line 189 in the /enfold/framework/php/class-breadcrumbs.php file.
'show_home' => __( 'Home', 'avia_framework' ),
Cheers!
Elliott
OK, and what do I need to change there in order for it to show something else other than “home page”?
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
Great. thanks.
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
Awesome! Thanks.