2

I have a Wordpress 5.4x website. I have installed Yoast 13.x SEO plugin into it and it's configured OK.

I also have breadcrumbs on my site using this Yoast plugin. To hide the title of the post in the breadcrumb's row, I have the following hack in WP's functions.php:

function remove_breadcrumb_title( $link_output) {
if(strpos( $link_output, 'breadcrumb_last' ) !== false ) {
    $link_output = '';
}
return $link_output;
}
add_filter('wpseo_breadcrumb_single_link', 'remove_breadcrumb_title' );

So the hack above works. I now am considering updating Yoast SEO plugin to latest 14.x. Does anyone have a new update to the code above to work with Yoast 14.x in case I install it later?

2 Answers 2

1

In this case, you don't need to change the code for it to work in new upgrades of Yoast SEO. But, there may be a change of code in other major future upgrades of the plugin.

In that case, you need to check the official Yoast website for updates or if your problem isn't listed there, you would need to contact them directly either through the WordPress forum or in their official website.

1
0

Why don't you instead hide it using CSS?

 #BreadcrumbsDivName{
   visibility:none;
 }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.