WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
How Can I Remove "HOME > " from Breadcrumbs? (7 posts)

  1. wmsmart
    Member
    Posted 1 year ago #

    After configuring and enabling the breadcrumbs, I see breadcrumbs from my page show: "HOME > Service > Marketing"

    But, I want to show: "Service > Marketing" without the link to the homepage on every page.

    How can I modify the breadcrumbs?

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. syrinx32123
    Member
    Posted 1 year ago #

    I followed the steps here and it worked for me. It's gone from my homepgage

    http://wordpress.org/support/topic/plugin-yoast-breadcrumbs-remove-from-homepage?replies=5

    http://www.travelgrom.com

  3. inhouse
    Member
    Posted 1 year ago #

    I think @syrinx32123 misunderstood the question. I'm looking to remove "Home" from the breadcrumbs string as well. Removing with CSS doesn't seem to be possible because none of the markup has any CSS classes/IDs to target.

    Here's my markup. I was able to wrap the separators in a span but I tried this for the "Anchor text for the Homepage" and apparently it doesn't accept HTML.

    <div id="breadcrumbs">
    <span xmlns:v="http://rdf.data-vocabulary.org/#"><span typeof="v:Breadcrumb">
    <a href="http://mydomain.com" rel="v:url" property="v:title">Home</a></span>
    <span class="seperator"> ยป </span>
    ....
  4. cr8ivmedia
    Member
    Posted 12 months ago #

    This should help, copy and paste this into your themes functions php file and it will remove the 'Home' link and separator from the breadcrumbs:

    function remove_home_from_breadcrumb($links)
    {
    	if ( $links[0]['url'] == get_home_url() ) {
    		array_shift($links);
    	}
    	return $links;
    }
    add_filter('wpseo_breadcrumb_links', 'remove_home_from_breadcrumb');
  5. erez88
    Member
    Posted 10 months ago #

    Hi cr8ivmedia, thanks, but your suggestion didn't work for me :(

  6. Alergic
    Member
    Posted 7 months ago #

    This is the edited code that worked for me ! I think it's an additional space between two brackets "_url())" that render the last code unusable.
    Thanks @cr8ivmedia !

    function remove_home_from_breadcrumb($links)
    {
    	if ($links[0]['url'] == get_home_url()) { array_shift($links); }
    	return $links;
    }
    add_filter('wpseo_breadcrumb_links', 'remove_home_from_breadcrumb');
  7. Alergic
    Member
    Posted 7 months ago #

    I removed titles from breadcrumbs, and then 'Home'. And after 5 days I found out that I worked for nothing, breadcrumbs disappeared from Google search page, but just for some articles (only 5 days).

    Am I the only one ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic