Tagged: breadcrumb
Hello,
how I can change breadcrumb: “You are here” once and avoid touching any files in future updates?
Thank you!
Hi Soapmarine!
Thank you for using the theme. I hope you’re doing well today.
Please add this on functions.php:
add_filter('avia_breadcrumbs_args', 'change_breadcrumb_before', 10, 1);
function change_breadcrumb_before($args) {
$args['before'] = '<span class="breadcrumb-title">' . __( 'You are not here, you're there:', 'avia_framework' ) . '</span>';
return $args;
}
If you’re using a child theme, place it at the bottom of the child theme’s functions.php.
Best regards,
Ismael
Hello Ismael,
actually I added this in functions.php and it’s disabled the site. Well, I prefer now simply just change “You are here” into “U bent here” (in Dutch).
Where it’s possible? I saw this thread : https://kriesi.at/support/topic/how-do-i-change-you-are-here-in-the-breadcrumb/ where cyoniq advise to adress to go to: themes > enfold > framework > php > class-breadcrumb.php but I didnt find such file class-breadcrumb.php niether in the Editor, niether in Enfold menu.
Can you help?
Thank you!
Hey!
I’m sorry about that. Please use this instead:
add_filter('avia_breadcrumbs_args', 'change_breadcrumb_before', 10, 1);
function change_breadcrumb_before($args) {
$args['before'] = '<span class="breadcrumb-title">' . __( 'CHANGE THIS LINE:', 'avia_framework' ) . '</span>';
return $args;
}
Regards,
Ismael
Thank you very much, Ismael!
This one worked!
Have a great day!