Our site http://www.jarlsbergpartners.no has a homepage called Forside (means first page). Still the breadcrumb is using the term Home for the Forside page. I cannot understand why..? I would like the breadcrumb line to start with Forside so it is always in line with the menus and name of the front page.
When I look in the Appearance – Menu section and All pages; there are two pages that includes the word Forside. “Forside” and “Hjem: Forside”. I suspect it is the last one that creates the problem since Hjem means Home in Norwegian. However, when I look under the main Pages section, I can only the see the regular Forside page.
Any clues?
Hi jarlsberg!
Add this on functions.php:
add_filter('avia_breadcrumbs_args', 'avia_change_home_breadcrumb', 10, 1);
function avia_change_home_breadcrumb($args){
$args['show_home'] = __( 'Forside', 'avia_framework' );
return $args;
}
Regards,
Ismael
Thank you. However, It did not work for me. The homepage did not load after including this in functions.php.
Maybe it should be put into a specific line?
I use Notepad++ for editing.
Hey!
I just tried the code and it works for me. Please delete the entire code in functions.php and replace it with http://pastebin.com/raw.php?i=gxH3hQjj
Cheers!
Peter
Thank you so much, Peter! Now it works well.
Greetings,
Jan