YOAST breadcrumbs

This topic contains 12 replies, has 5 voices, and was last updated by  Alex Rollin 5 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #474501

    Ann
    Full Member
    Post count: 84

    We have updated to v2 and have some questions about the breadcrumbs implementation. Is it possible to remove the country part from the breadcrumb. Also when we click on the region and town/city an error page comes up instead of showing the listings from those locations.

    #474504

    Kor
    Moderator
    Post count: 16516

    Hi Ann,

    Thanks for your reply. Since the breadcrumbs are created using the Yoast SEO plugin, you need to reach out to the plugin author for support.

    Thanks!

    #476195

    James Grove
    Expired Member
    Post count: 30

    I’m having the same issue.

    GeoDirectory and Yoast are adding a lot of items to the breadcrumbs that I don’t need (Country, State, City), and there doesn’t seem to be any way to turn them off.

    I get that it’s an interoperability issue, but your documentation suggests adding Yoast breadcrumbs, so it’s not appropriate to just say we need to ask Yoast to fix it.
    https://wpgeodirectory.com/docs-v2/integrations/yoast/#breadcrumbs

    It’s also pretty basic functionality that all your users need and all the end-users expect to see. So I think a little focus on this issue is warranted.

    Thanks
    James

    #476199

    Kor
    Moderator
    Post count: 16516

    Hi James,

    Thanks for your reply. Kindly open a new topic and I’ll get a developer to look into this for you.

    Thanks!

    #476210

    Alex Rollin
    Moderator
    Post count: 27815

    We do want to improve the integration and look into providing options as soon as we have finished our current work priorities.

    If you need to hire a developer to get the breadrumbs you want in conjunction with your theme you can take a look here: https://geodirectoryexperts.com/

    #476343

    Ann
    Full Member
    Post count: 84

    I don’t think its YOAST problem. It only affects the locations that you insert into the breadcrumbs. For example:

    Home » Wedding Venues » United kingdom » London » City Venues » The Waldorf Hilton

    … and clicking on London leads to a URL with duplicated region

    http://site.tld/wedding-venues/london/united-kingdom/london/

    … leading to an error page

    #476384

    Alex Rollin
    Moderator
    Post count: 27815

    We do have a task to work on Yoast integration as soon as possible. We will let you know when we have done so. We are aware of that particular issue and thank you for reporting it.

    #477485

    Ann
    Full Member
    Post count: 84

    Do you have a time frame on this, are you talking days, weeks or months?

    #477528

    Alex Rollin
    Moderator
    Post count: 27815

    No, I recommend you remove the breadcrumbs in the meantime if they do not serve you. It might be better to choose a theme with breadcrumbs support.

    #482328

    Ann
    Full Member
    Post count: 84
    This reply has been marked as private.
    #482502

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #486579

    Alfonso Sánchez Gómez
    Expired Member
    Post count: 67

    I removed the country part in this way, I hope it serves you.

    
    add_filter('wpseo_breadcrumb_single_link' ,'custom_remove_country', 10 ,2);
    function custom_remove_country($link_output, $link ){
     
        // If text is Spain we remove directly
    	if ($link['text'] == 'Spain') {
            $link_output = '';
        }
       // We remove "spain" from urls for regions and citis
       $link_output = str_replace("/spain","",$link_output);	
    
        return $link_output;
    }

    Change spain to the name of your country.
    This code is included in the functions.php file of your child theme

    #486617

    Alex Rollin
    Moderator
    Post count: 27815

    Thanks for sharing!

Viewing 13 posts - 1 through 13 (of 13 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount