Home / Disable / Remove Post Title from Yoast Breadcrumbs
Duplicate Snippet

Embed Snippet on Your Site

Remove Post Title from Yoast Breadcrumbs

This snippet removes the post title from Yoast SEO breadcrumbs

Code Preview
php
<?php
// Remove post title from yoast breadcrumbs
add_filter('wpseo_breadcrumb_single_link', function( $link_output) {
	if( strpos( $link_output, 'breadcrumb_last' ) !== false ) {
		$link_output = '';
	}
	return $link_output;
} );

Comments

Add a Comment