Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27428

    Hi guys

    How can I remove the “You are here:

    #133974

    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

    #133975

    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?

    #133976

    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 :)

    #133977

    Hey!

    Yes, mea culpa – small typo – I corrected the code :)

    Regards,

    Peter

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Remove "You are here: …" on the header?’ is closed to new replies.