Breadcrumbs generally provide links to one of the archives you have chosen automatically. These can be your category or tag or date format. You can enable those using Yoast settings.
PHP code is provided to display the breadcrumbs. This needs to be included at the place where you want to show the navigation links.
The following Yoast php breadcrumbs code has to be inserted in the hook element content of Genesis Theme.
<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ); } ?>
When you are on a post, you would like to see the category to which it belongs. This is a simple method to reach the home page from the post. After reading the article, you would like to read similar posts of the same type.
What are Breadcrumbs in WordPress
Breadcrumb navigation are links placed on posts, pages, categories, tags and other archives. By default, WordPress does not provide any setting to include on your site. Yoast SEO plugin provides a way to include this secondary navigation system.
Most people like to display the breadcrumbs at the top of the post or after the post title. In some cases, they would like to include them in the header. All these are possible with the placement code of WordPress.
Most PHP code insertion plugins give no choice to include breadcrumbs at the desired spot. Using the hook element of GeneratePress theme, you can place the php code at an appropriate location.
In this tutorial, we are going to see how to display breadcrumbs in WordPress above the post title.
Yoast Breadcrumbs Settings
The following other options are available under Yoast Breadcrumbs settings page.
- Separator between breadcrumbs.
- Anchor text for the Homepage
- Prefix for the breadcrumb path
- … for Archive breadcrumbs
- Prefix for Search page breadcrumbs
- Breadcrumb for 404 page
You can also bold the last page in the breadcrumb navigation path.
For taxonomy related settings –
- Posts – You can choose Category, Tag, Format and None.
The following link also gives detailed instructions on how to implement Yoast breadcrumbs for different themes.