Breadcrumbs with Yoast SEO

Hi,

How can I configure breadcrumbs with Yoast SEO? These are the steps I'm following:

1. Turn off "Use built-in fields" option at Global > SEO > General.

2. Enable breadcrumbs at Yoast SEO configuration.

3. Paste this code at Global > Hooks > Content before
<?php
  if ( function_exists('yoast_breadcrumb') ) {
    $breadcum = yoast_breadcrumb('<p id="breadcrumbs">','</p>',false);
    echo $breadcum;
  };
?>

And this is the result I get at my web page instead of the breadcrumb:

','
',false); echo $breadcum; }; ?>


Thanks!


Comments

  • Hello,
    It's hard to say, because we didn't have included the breadcrumbs feature for yoast seo.
    But, as I see, you have to insert it into the single.php and page.php file.

    Sadly, we are not able to help you while the theme files customization is required.
    Thanks
Sign In or Register to comment.