[Support request] Inserting Breadcrumbs Using Elements in 1.7

Home Forums Support [Support request] Inserting Breadcrumbs Using Elements in 1.7

Home Forums Support Inserting Breadcrumbs Using Elements in 1.7

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #631643
    Perrin

    Hey there πŸ™‚

    I’m trying to insert breadcrumbs using the Elements function of GP 1.7. I’m using Yoast, and breadcrumbs are enabled. I’ve tried adding the following code using a hook.

    <?php if ( function_exists('yoast_breadcrumb') && is_single() ) : ?>
        <div class="grid-container yoast-breadcrumb">
            <?php yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ); ?>
        </div>
    <?php endif; ?>

    Here is a screenshot of the element: https://cl.ly/3A1s3k2m0B0W

    And here is a screenshot of the result on the front end: https://cl.ly/321u462c3Y2I

    What am I missing?

    Thanks in advanced, and thanks for all your hard work πŸ™‚

    #631666
    David
    Staff
    Customer Support

    Hi there,

    just need to check the Execute PHP checkbox in the Hook πŸ™‚

    #631671
    Perrin

    lol. worked. Thanks πŸ™‚

    #631681
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.