0

Hi so 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? Thanks in advance!

0

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.

| improve this answer | |
0

Why don't you instead hide it using CSS?

 #BreadcrumbsDivName{
   visibility:none;
 }
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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