Add theme support for Yoast SEO breadcrumbs

If your theme declares support for yoast-seo-breadcrumbs, Yoast SEO will render breadcrumbs for you in the location of your choice. Plus, users of your theme will automatically get a Customizer component to customize their breadcrumbs to their liking.

If you want your theme to support Yoast breadcrumbs, follow the steps in our Yoast SEO Breadcrumbs implementation guide. After you’ve made sure breadcrumbs appear on every page and look nice, you can add the following bit of code to your theme’s functions.php file:

add_theme_support( 'yoast-seo-breadcrumbs' );

That’s all. As soon as you add that to your theme, breadcrumbs will be enabled immediately (the “enable” checkbox will actually disappear). So as soon as one of your theme’s users installs and activates Yoast SEO, the breadcrumbs will start working.

It is also possible to add breadcrumbs to individual posts and pages with the Yoast SEO breadcrumbs block. All you need to do is add the block and the breadcrumbs will automatically be featured on the post or page. Learn more about how to use the breadcrumbs block in this article.

Related articles

Get free SEO tips!