Hi guys
How can I remove the “You are here:
Hi!
Add following code to the bottom of functions.php
add_filter('avia_breadcrumbs_args','avia_remove_breadcrumb_before', 10, 1);
function avia_remove_breadcrumb_before($args)
{
$args['before'] = '';
return $args;
}
Regards,
Peter
Peter, Does this need to be the last lines of code, or does it need to go before something? When I added this, to my child functions.php I get an error that shows up at the top of the pages now.
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘avia_remove_breadcrumb_before10’ was given in /home/content/50/8301350/html/wp-includes/plugin.php on line 173
If add it to the themes functions.php I get an critical error warning and the site doesn’t even show up. What am I missing?
Got it. Peter there is an error in the code you pasted above after avia_remove_breadcrumb_before’ then there is a period this needs to be a , after changing that it works beautifully :)
Hey!
Yes, mea culpa – small typo – I corrected the code :)
Regards,
Peter