Hi, in this thread I got the answer – https://kriesi.at/support/topic/how-to-change-the-homepage-name-in-the-breadcrubms/ – but now that I have 2 more languages on the site I need to have a different name for each language home page. Can I do that?
Hey DROR!
Please change Ismael’s code to following one
add_filter( 'avia_breadcrumbs_args', 'avia_breadcrumbs_args_mod', 10, 1 );
function avia_breadcrumbs_args_mod($args) {
if(ICL_LANGUAGE_CODE=='en'){
$args['show_home'] = 'YOUR NEW HOME TEXT HERE';
}
if(ICL_LANGUAGE_CODE=='it'){
$args['show_home'] = 'YOUR NEW HOME TEXT HERE IN ITALIAN FOR EXAMPLE';
}
return $args;
}
and change “en” and “it” to match your websites languages
Cheers!
Yigit
Great, that worked for English and Arabic but how do I also change the main language, Hebrew?
Hey!
Can you please try using following code
add_filter( 'avia_breadcrumbs_args', 'avia_breadcrumbs_args_mod', 10, 1 );
function avia_breadcrumbs_args_mod($args) {
if(ICL_LANGUAGE_CODE=='en'){
$args['show_home'] = 'YOUR NEW HOME TEXT HERE';
}
if(ICL_LANGUAGE_CODE=='it'){
$args['show_home'] = 'YOUR NEW HOME TEXT HERE IN ITALIAN FOR EXAMPLE';
}
if(ICL_LANGUAGE_CODE=='he'){
$args['show_home'] = 'YOUR NEW HOME TEXT HERE IN HEBREW';
}
return $args;
}
Best regards,
Yigit
Awesome, Thanks!