Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #538857

    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?

    #538967

    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

    #538978

    Great, that worked for English and Arabic but how do I also change the main language, Hebrew?

    #538992

    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

    #539015

    Awesome, Thanks!

    #539018

    Hi!

    You are welcome Bakbek, glad we could help :)

    Regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to change the homepage name in the breadcrumbs for different languages?’ is closed to new replies.