Implement Yoast SEO breadcrumbs

Last update: 04 August, 2016
Warning: The steps below are a temporary solution as manual edits made to theme files may be overwritten with future theme updates. Please contact the theme developer for a permanent solution.

To implement the breadcrumbs function in Yoast SEO, you will have to edit your theme. Copy the following code into your theme where you want the breadcrumbs to be:

<?php
if ( function_exists('yoast_breadcrumb') ) {
     yoast_breadcrumb('<p id="breadcrumbs">','</p>');
}
?>

Common places where you could place your breadcrumbs are inside your single.php and/or page.php file just above the page's title. Another option that makes it really easy in some themes is by just pasting the code in header.php at the very end.

In most themes, this code snippet should not be added to your functions.php file. If you have trouble locating the correct place to add the code, please contact the theme developer for assistance.

After that, go to SEO Settings → Advanced → Breadcrumbs and enable the breadcrumbs.

1
Log in to your WordPress website. When you're logged in, you will be in your 'Dashboard'. On the left-hand side, you will see a menu. In that menu, click on 'SEO'.
2
The 'SEO' settings will expand providing you additional options. Click on 'Advanced'.
3
Click on the 'Breadcrumbs' tab and toggle Breadcrumbs to enabled. Adjust settings to your preference.
kb-yoast-breadcrumbs
4
Click 'Save Changes'.

Was this article helpful? ·