• Jon Edwards

    (@slumtownhero)


    I’ve got my Yoast breadcrumbs working perfectly in my php templates. The only issue I’m having (and maybe I’m missing something) is this:

    Despite have checked “Bold the last page in the breadcrumb” in the “Internal Links” tab of Yoast SEO (WP-Admin), if you browse to a post category, the last item in the breadcrumb (which is the category) is not wrapped in < strong > tags.

    If a page is the last item in the breadcrumb, it is wrapped. But if the last item is a category, it’s not. In this instance, your url would be something like domain.com/category/computers. In the breadcrumb, “computers” is last, but not wrapped in < strong > tags.

    Any help? Or am I missing the point?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Jon Edwards

    (@slumtownhero)

    Anyone?

    Jonathan

    (@jrcowher)

    I’m having the same issue – only my issue is with a taxonomy page.

    Jonathan

    (@jrcowher)

    Hey Jon, I think I found the solution. Open up the wordpress-seo plugin directory > frontend > class-breadcrumbs.php and go to line 238 – should look something like:

    $output .= $bctitle;

    replace with

    $output .= $this->bold_or_not($bctitle);

    Fixed my taxonomy issue – should also fix your category issue!

    Thread Starter Jon Edwards

    (@slumtownhero)

    @ jrcowher – Thanks for this. I’ll check it out and let you know how it works out. Was hoping though that I wouldn’t have to go messing around with the plugin itself, as Yoast releases updates often (especially over the last week).

    Same issue here. I worked around it using jrcowher’s response but hope it can be fixed in the plugin itself.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Yoast Breadcrumbs] Not bolding category when last item’ is closed to new replies.