Any way to remove title in Yoast breadcrumbs, using Beaver Themer?

Hi so I just want Home > Category > as breadcrumbs, not the topic of the post.

Is there any way to set this up? Thanks!

full docs here

Hi thanks! so yes there is a code to remove the post title link. However it also removes the previous link (parent link) and publishes only text instead of a link.

So if I have links as follows:

Home>Link1>Title of Post

Applying the patch into functions.php results in this:

Home>Link1Text

So the Link1 is not a link anymore but a text. So breadcrumbs are useless after this hack.

Here is the code I used as per your page -

add_filter( ‘wpseo_breadcrumb_links’, ‘wpseo_breadcrumb_remove_postname’ );
function wpseo_breadcrumb_remove_postname( $links ) {
if( sizeof($links) > 1 ){
array_pop($links);
}
return $links;
}

Is there anyway to fix the above? Thanks!