Implement Yoast SEO breadcrumbs

Last update: 17 January, 2017
Warning: This guide is written for advanced users and developers. 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:

if ( function_exists('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.

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'.
The 'SEO' settings will expand providing you additional options. Click on 'Advanced'.

If you do not see this option, please enable advanced features.

Yoast SEO > Advanced

Click on the 'Breadcrumbs' tab and toggle Breadcrumbs to enabled. Adjust settings to your preference.
Click 'Save Changes'.

Was this article helpful? ·