Support » Plugins » Yoast Breadcrumbs – How can I remove "blog" link?

  • jheinrichs79

    (@jheinrichs79)


    I have Yoast Breadcrumbs working. Is there an easy way of removing “BLOG” from the links. Currently it looks like HOME > “BLOG” > Category > Sub-Category > Name of Post.

    The company doesn’t want to have a “BLOG” on their website but is in love with the ease of posting items with WordPress.

    Any help would be appreciated 🙂

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • What I did was edit the yoast-breadcrumbs.php file. On Line 221 (version 0.8.5) the code show is:

    $output = $homelink.' '.$opt['sep'].' '.bold_or_not($opt['blog']);

    I took out the ‘sep’ so it looks like this:

    $output = $homelink.' '.$opt[''].' '.bold_or_not($opt['blog']);

    This might not solve the problem with a plugin upgrade by Yoast as it could get written over. We’ll put it to test for now.

    And of course removing the title ‘Blog’ from “Anchor text for the Blog:” in the Settings file.

    An alternate way to do it:

    Goto Line 213
    $bloglink = $homelink.' '.$opt['sep'].' <a href="'.get_permalink(get_option('page_for_posts')).'">'.$opt['blog'].'</a>';

    And replace with:

    $bloglink = $homelink;

    @mikepote – thanks for that, exactly what I was after.

    I have duplicate blog on my site e.g You are here: Home » Blog » Blog » would this code remove both of these as i do want one > blog to show?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Yoast Breadcrumbs – How can I remove "blog" link?’ is closed to new replies.