Remove Last Item from Yoast Breadcrumbs hides the current page from the breadcrumb trail that Yoast SEO shows on your site, so the trail stops right before the title instead of repeating it.
Before you start
- WordPress 5.8.3 or later
- PHP 5.6 or later
- Yoast SEO with its breadcrumbs showing on your site. This plugin works by changing Yoast’s breadcrumb output, so without Yoast breadcrumbs it has nothing to do.
Install
- In your WordPress dashboard, go to Plugins → Add New Plugin.
- Click Upload Plugin.
- Choose the plugin zip file.
- Click Install Now.
- Click Activate.
How to use
There’s nothing to set up. Once the plugin is active, it starts working on every Yoast breadcrumb trail on your site.
- Activate the plugin.
- Visit any post or page that shows Yoast breadcrumbs.
- Check that the trail now ends with the parent item (for example, Home › Recipes) instead of the current page’s title.
To bring the last item back, deactivate the plugin.
Developer reference
Coming soon: the hooks, filters and functions you can use with this plugin from your theme or a code snippet.
FAQs
How does it decide which item to remove?
It hooks into Yoast’s wpseo_breadcrumb_single_link filter and removes the breadcrumb item that Yoast marks with the breadcrumb_last class, which is the current page.
Does it change Yoast’s breadcrumb schema?
The plugin only touches the visible breadcrumb links. It doesn’t hook into Yoast’s schema output, so the structured data should still list the full trail.