Tagged: 

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

    Hello,
    how I can change breadcrumb: “You are here” once and avoid touching any files in future updates?
    Thank you!

    #232557

    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

    #234389

    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!

    #234515

    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

    #234592

    Thank you very much, Ismael!
    This one worked!
    Have a great day!

    #234692

    Hey!

    Glad it worked. :)

    Regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Change safely breadcrumbs without changing anything in future updates’ is closed to new replies.