[Resolved] Trying to enable Breadcrumbs (Yoast SEO)

Home Forums Support [Resolved] Trying to enable Breadcrumbs (Yoast SEO)

Home Forums Support Trying to enable Breadcrumbs (Yoast SEO)

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #416236
    Joseph

    This is the code I used, on the GP hooks portion (after entry title)

    <?php if ( is_page() || is_single() ) : ?>
          ( function_exists('yoast_breadcrumb') ) {
    yoast_breadcrumb('
    <p id="breadcrumbs">','</p>
    ');
    }
    <?php endif; ?>

    I’m sure I butchered that somehow. Also, how do I have it so it doesn’t appear on the home page? I’m not good at PHP and don’t know how to combine this:

    <?php if ( ! is_front_page() ) : ?>
    xxxxxxxxxxx
    <?php endif; ?>
    #416326
    Leo
    Staff
    Customer Support

    Hi there,

    Try this:

    <?php if ( function_exists('yoast_breadcrumb') && ! is_front_page() && is_page() && is_single() ) : ?>
        <?php yoast_breadcrumb( '<p id=”breadcrumbs”>','</p>' ); ?>
    <?php endif; ?>
    #416370
    Joseph

    Darn, that didn’t work.

    #416405
    Leo
    Staff
    Customer Support

    Are you only looking to exclude on home page?

    If so try this:

    <?php if ( function_exists('yoast_breadcrumb') && ! is_front_page() ) : ?>
        <?php yoast_breadcrumb( '<p id=”breadcrumbs”>','</p>' ); ?>
    <?php endif; ?>
    #416423
    Joseph

    Genius! It works.

    #416669
    Leo
    Staff
    Customer Support

    No problem!

    #444998
    syafiq

    hello Leo, can you help me out?

    I know nothing about breadcrumbs and how to do it?
    And I don’t know about any coding either.

    But I do want my site look like this :
    https://cl.ly/0k1s0n3Q2t0F

    And this ( read the comments section )
    https://cl.ly/1M1B0k3t0I39

    Can I add you to my WordPress website as an admin and add what it should be to have the breadcrumbs as i stated above ?

    #445047
    Leo
    Staff
    Customer Support

    Hi there,

    Can you open a new topic and provide a link to your site?

    and also doing something for users is out of the scope of this forum but we will gladly help to guide you through.

    #471473
    Zohaib

    Hi Leo,

    How do I disable the breadcrumbs on multiple pages.

    Here is one of the link where I want to disable breadcrumbs:

    https://www.superbeyebrows.co.uk/services/

    Thanks

    Zo

    #471493
    Leo
    Staff
    Customer Support

    Check out this: https://generatepress.com/forums/topic/gutter-in-lightweight-grid-columns/

    and click on See more info on A PAGE Page.

    Please open a new topic if you need additional help.

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