Home / Admin / Remove Post Title from Yoast Breadcrumb
Duplicate Snippet

Embed Snippet on Your Site

Remove Post Title from Yoast Breadcrumb

Code Preview
php
<?php
/* Remove Post Title from Yoast Breadcrumb */
add_filter('wpseo_breadcrumb_single_link', 'remove_breadcrumb_title' );
function remove_breadcrumb_title( $link_output) {
if(strpos( $link_output, 'breadcrumb_last' ) !== false ) {
$link_output = '';
}
return $link_output;
}

Comments

Add a Comment