Hey, it seems like my php code to implement the yoast breadcrumbs does not work on pages that use the generatepress sections.
Here is my php code that i execute in GP hooks “Before content”:
<?php if ( function_exists('yoast_breadcrumb') ) { ?>
<?php if ( is_page() && !is_front_page() ) : ?>
<div class="grid-container grid-parent">
<div class="page-header">
<?php yoast_breadcrumb('<p id="breadcrumbs">','</p>'); ?>
</div>
</div>
<?php endif; ?>
<?php } ?>
Example on page without sections, where breadcrumbs work: http://188.166.83.80/kurs/kranforerkurs
Page that uses sections, where breadcrumbs does NOT work: http://188.166.83.80/kurs
Anyone have any idea how the php code should look to make the breadcrumbs visible on pages using generatepress sections?
Thanks!