[Resolved] Bread crumbs for non posts

Home Forums Support [Resolved] Bread crumbs for non posts

Home Forums Support Bread crumbs for non posts

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #886734
    Louis

    My web site is static pages with no blog posts. In this article – https://docs.generatepress.com/article/adding-breadcrumbs/ it says to use the Post as a location. In my use case should I use Post or another such as Site, etc.?
    Thank you.

    #886753
    Leo
    Staff
    Customer Support

    Hi there,

    Yup – you can add Page to the display rules as well.

    Or try Entire Site if you want it on every page.

    Let me know if this helps πŸ™‚

    #886810
    Louis

    Thanks, Leo. Would entire site be better for SEO?

    #886938
    Tom
    Lead Developer
    Lead Developer

    I think it depends on your site more than anything. It might not make sense to have breadcrumbs everywhere (404 page? etc..)

    It’s worth trying though – see how it works on your site. You might end up excluding some areas.

    #887172
    Louis

    Thank you for the help.

    #887185
    Tom
    Lead Developer
    Lead Developer

    No problem πŸ™‚

    #888017
    Louis

    May be a slight problem – After enabling, I only get the Home hyperlink to show up. Not the trail of breadcrumbs. Is there a way I can send a screenshot?

    #888158
    David
    Staff
    Customer Support

    Hi there,

    The page is there, its just not visible as its the same color as the background. So edit your hook element and change the hook to before_content. This will move it into the content area with the white background.

    #888306
    Louis

    Now it shows in the content area but says: https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/

    #888367
    Tom
    Lead Developer
    Lead Developer

    What’s the exact code you’re adding?

    #888729
    Louis
    #888957
    Tom
    Lead Developer
    Lead Developer

    So you’re using this code in the Element?:

    <?php
    if ( function_exists('yoast_breadcrumb') ) {
      yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
    }
    ?>
    #889054
    Louis

    No. I was using https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/ that I found here: https://docs.generatepress.com/article/adding-breadcrumbs/

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

    #889055
    Louis

    I’m guessing yes. πŸ™‚ I gave it a try. Now I just get the code on the pages.

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

    #889065
    Louis

    I also did this – NOTE: Depending on your theme you may or may not need to add in the beginning <php and ending ?> php tags. If you are not sure, your theme developer can help.

    No luck.

Viewing 15 posts - 1 through 15 (of 21 total)
  • You must be logged in to reply to this topic.