Site logo

Archived topic

Inserting Breadcrumbs Using Elements in 1.7

3 replies · Started by Perrin on July 24, 2018

Viewing posts 1–4 of 4

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 :)

Hi there,

just need to check the Execute PHP checkbox in the Hook :)

lol. worked. Thanks :)

Glad i could help !

This archived topic is closed to new replies.