WordPress.org

Forums

Yoast Breadcrumbs
Not bolding category when last item (6 posts)

  1. Jon Edwards
    Member
    Posted 4 years ago #

    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?

  2. Jon Edwards
    Member
    Posted 4 years ago #

    Anyone?

  3. Jonathan
    Member
    Posted 4 years ago #

    I'm having the same issue - only my issue is with a taxonomy page.

  4. Jonathan
    Member
    Posted 4 years ago #

    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!

  5. Jon Edwards
    Member
    Posted 4 years ago #

    @ 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).

  6. YousefED
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast Breadcrumbs
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic