Implement Yoast SEO breadcrumbs

Last update: 12 November, 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.

We've written an article about the importance of breadcrumbs for SEO. 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.

Get access to our kick-ass support team with Yoast SEO Premium

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.

Alternatively, you can manually add the breadcrumb shortcode


to individual posts or pages.

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. If you don't see the 'Advanced' setting in your 'SEO' menu, please enable your advanced settings first.

Yoast SEO > Dashboard (Advanced disabled)

Menu with advanced settings disabled
Enable advanced features

Click on 'Advanced'.
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? ·