Skip to content

Snippet: Remove the Yoast Breadcrumbs title

Yoast doesn't have a setting to remove the title from the end of the breadcrumbs but you can use their "wpseo_breadcrumb_single_link" filter to remove it.

add_filter('wpseo_breadcrumb_single_link', function( $link_output ) {
	if( strpos( $link_output, 'breadcrumb_last' ) !== false ) {
		$link_output = '';
	}
   	return $link_output;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top