Install and Configure Yoast SEO Breadcrumbs

Yoast SEO Breadcrumbs

The navigation chain on the site is a convenience for the visitor and additional linking for search engines. Usually, WordPress themes have this feature. If yours is not, then we will analyze how to install and configure breadcrumbs from Yoast SEO.

This is a powerful plugin that is designed to facilitate SEO optimization. It conveniently allows you to fill in meta tags both for the entire site and for its individual sections – headings, tags, categories, pages, posts.

Another of his “tricks” is adding bread crumbs. They are optimized and suitable for all search engines. Let’s see how it’s done.

How about schema org markup?

The plugin already uses this microdata (or microdata). You don’t need to invent anything else.

How to withdraw Breadcrumbs?

  1. Make sure the extension is installed and activated – the SEO menu item should appear in the control panel.
  2. Go to the SEO admin section > Display in search results and go to the “Breadcrumbs” tab.
  3. Set the slider to Enabled and click Save Changes .
  4. If the theme supports this module, then the navigation will already work.

Setting up a chain in the plugin

On the options page, you will be able to control the appearance with the behavior of the crumbs.

You can set:

  • separator (default – “”, it is also called separator);
  • the text of the link to the main page;
  • prefixes for archives, search pages, and 404 errors;
  • the taxonomy and archive of the post type on which pages navigation will be displayed.

How else can you add navigation to the Yoast WordPress plugin?

If the theme does not support the work of this wp-add-on, then its developers have provided such an option.

Also see: How to disable WordPress links from indexing

PHP Code in Theme Templates

All VP themes have templates. These are files that are responsible for a specific part of the site. For example, header.php is responsible for the header or header. In the footer.php file, you can change the blocks that are displayed in the footer.

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


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


For each theme, the content and number of templates is different. And therefore there is no universal instruction where exactly you need to insert a call to this PHP function.

Usually navigation is displayed in posts, pages, archives. For this, examine the single.php , page.php and archive.php templates respectively.


Another way is to insert a shortcode in the content. Suitable if you need to selectively use bread crumbs somewhere.

To do this, open the publication for editing and insert a line in the format


If the plugin is active, then a set of navigation links will be displayed in this place.

Useful features and features

Let’s see what else we can do with breadcrumbs from the Yoast module.

How to remove from the main?

Search engine optimization experts advise getting rid of crumbs if the user is on the main page. They explain that there is no point in deriving a chain that leads nowhere. Linking from a page to itself is meaningless.

The creators of the extension have provided for this moment, and by default, the link is not set on the main one.

How to remove the double (last crumb)?

Search engines do not like duplicates on the pages of a web resource. Usually, in breadcrumbs, Yoast SEO displays the name of the last breadcrumb, i.e. posts, pages, archives. This is not necessary.

To hide it, find the functions.php file in your theme directory and add a few lines of PHP code to the very end:

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


Leave a comment

Your email address will not be published. Required fields are marked *