Can't get breadcrumbs to show

This topic contains 8 replies, has 3 voices, and was last updated by  Kor 4 years, 12 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #490153

    byalik
    Lifetime Member
    Post count: 78

    I added this code as a hook to my GP theme:

    <?php if ( function_exists(‘yoast_breadcrumb’) ) { ?>
    <?php yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’); ?>

    <?php } ?>

    It is showing fine for posts/pages but won’t show for the Directory

    Added a screenshot of the settings in Yoast

    URL (https://www.onbiz.com/reviews/test1/)

    #490164

    Kor
    Moderator
    Post count: 16516

    Hi byalik,

    Thanks for your post. Kindly share your Website WP admin access here in private reply and we’ll check this out for you.

    Thanks!

    #490174

    Alex Rollin
    Moderator
    Post count: 27815

    You would need more code to make it work that way.

    Try adding the shortcode to your GD templates instead.

    #490180

    byalik
    Lifetime Member
    Post count: 78
    This reply has been marked as private.
    #490633

    Kor
    Moderator
    Post count: 16516

    Hi byalik,

    Thanks for your reply. I’ve just fixed it for you and could you please check? I’ve followed the steps here https://wpgeodirectory.com/docs-v2/integrations/yoast/#breadcrumbs

    #490768

    byalik
    Lifetime Member
    Post count: 78

    Thanks Kor but that’s not really a good way of doing it because it only got added to the individual item template and not across the entire GD directory. Also, it was added below the title (whereas for the rest of the site it’s added above the title). Is there a php code for it I can use and just insert it like I did with the rest of the site?

    #490866

    Alex Rollin
    Moderator
    Post count: 27815
    #490919

    byalik
    Lifetime Member
    Post count: 78

    I followed their instructions and they work for the main wordpress website but it doesn’t work for any of the GP pages which is why I opened this support ticket.

    #490924

    Kor
    Moderator
    Post count: 16516

    Hi byalik,

    Thanks for your reply. Could you try customizing the GD Templates here https://wpgeodirectory.com/docs-v2/faq/customizing/#templates and see if it helps?

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

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

Open Support Ticket