Fatal error: Can not redeclare yoast_breadcrumb () wordpress

0

I have problems with this site link is throwing me an error but I do not know why it can be done, although in the function I had declared this; I deleted it completely and it keeps throwing me the error. Or it can be server cache problems where you are working but.

function yoast_breadcrumb() {
if (!is_home()) {
    echo '<span><a href="';
    echo get_option('home');
    echo '">';
    echo "Inicio";
    echo "</a><i class='fa fa-chevron-right' aria-hidden='true'></i>";
    if (is_category() || is_single()) {
        echo '<a href="';
        echo the_permalink();
        echo '">';
        the_category('title_li=');
        echo "</a></span>";
        if (is_single()) {
            echo '<a href="';
            echo the_permalink();
            echo '">';
            echo the_title();
            echo "</a><i class='fa fa-chevron-right' aria-hidden='true'></i>";
        }
    } elseif (is_page()) {
        echo '<a href="';
        echo the_permalink();
        echo '">';
        echo the_title();
        echo "</a>";
    }
  }
}
    
asked by MarianoF 23.03.2018 в 18:35
source

1 answer

0

According to the documentation, it does not seem to be a cache problem.

Here it is explained that:

  

Your theme or other complement includes our bread crumb class, and   is not wrapping class_exists or wrapping properly   function_exists The part of the above error normally   should indicate you in a directory of topics or complements,   indicating which complement is the culprit.

     

The class of bread crumbs in our supplement is maintained, while   that the bread crumb class that is sent with the subject probably   outdated Therefore, check with the creator of your subject   and send them to this page.

And he says to correct it:

  

You should wrap the class and functions in class_exists or   function_exists wrappers. Or, better yet, you should not include it at all   and just tell people to install our Yoast SEO add-on and   use the bread crumbs provided by our supplement, since   they are much more up to date and really work with types of   personalized publications, personalized publication type   files, etc.

Luck

    
answered by 23.03.2018 в 20:17