Navigation chain on the site – convenience for the visitor and additional linking for search engines. Usually in WordPress themes there is this function. If you do not, we’ll figure out how to install and configure the breadcrumbs from Yoast SEO.

This is a powerful plugin, which is designed to facilitate SEO-optimization. Conveniently allows you to fill the meta-tags for the entire site, as well as for its individual sections – headings, tags, categories, pages, records.

Another of its ” trick ” – adds breadcrumbs. They are optimized and suitable for all search engines. Let’s see how it is done.

What about the schema org markup?

The plugin already uses this micro markup (or microdata). There is nothing more to invent.

How can I display Breadcrumbs?

  1. Make sure that the extension is installed and activated – the SEO menu item should appear in the control panel.
  2. Open the admin section SEO > Search Display and go to the “Breadcrumbs” tab.
  3. Set the slider to “Enabled” and click Save changes.

If the theme supports this module, the navigation will already work.

Configure the display in the plugin

On the options page you can control the appearance with the behavior of crumbs.

You can specify:

  • a separator (by default – “, it is also called separator);
  • the text of the link to the home page;
  • prefixes for archives, search pages and 404 errors;
  • taxonomy and archive type of records, which pages will display the navigation.

How else can I add navigation to WordPress?

If the theme does not support the work of this wp-plugin, the developers have provided this option.

PHP code in theme templates

All WP-themes have templates. These are files that are responsible for a particular part of the site. For example, header.php is responsible for the header. In the file footer.php you can change the blocks, which are displayed in the basement.

To add breadcrumbs from Yoast, the creators of the plugin provide code for


/* breadcrumb Yoast */
if ( function_exists( 'yoast_breadcrumb' ) ) :
yoast_breadcrumb( '<div id="breadcrumbs">', '</div>' );


The content and number of templates are different for each theme. That’s why there’s no universal instruction where to paste this PHP function call.

Usually navigation is displayed in posts, pages, archives. To do this, explore the single.php, page.php and archive.php templates respectively.


Another way is to insert a short code (shortcode) in the content. Suitable if you need somewhere selectively involve breadcrumbs.

To do this, open the publication to edit and paste a line in the format

[wpseo_ breadcrumb]

If the plugin is active, a set of navigation links will be displayed at this location.

How to remove from the homepage?

Specialists in search engine optimization advise to get rid of crumbs, if the user is on the main page. Explain by the fact that there is nothing to output a chain that does not lead anywhere. Linking from page to itself makes no sense.

The creators of the extension have provided for this point, and by default, the link is not displayed on the home page.

How to remove the double (the last crumb)?

Search engines do not like takeovers on web resource pages. Usually in breadcrumbs Yoast SEO displays the name of the last crumb, such as posts, pages, archives. This is not necessary.

To hide, in the directory of your topic find the file functions.php and at the end add a few lines of PHP code:

add_filter( 'wpseo_breadcrumb_single_link', function ( $link_output ) {
    if ( strpos( $link_output, 'breadcrumb_last' ) !== false ) {
        $link_output = '';
    return $link_output;

How to implement, enable, and configure the Yoast SEO breadcrumbs | Yoast SEO features explained (Video)