Archived topic
breadcrumb
12 replies · Started by Gonzalo on November 26, 2018
Hi,
I need breadcrumbs in this area:
http://prntscr.com/lnbte4
I use Flint Skin Volume theme base.
I try with element - header, but no work PHP yoast code.
I could use another breadcrumbs, from GP?
Regards
Hi there,
So inside the page hero (blue block)?
If so you should be able to just add this code to the page hero content:
<?php if ( function_exists('yoast_breadcrumb') ) : ?>
<div class="yoast-breadcrumb">
<?php yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ); ?>
</div>
<?php endif; ?>
And make sure Execute PHP is checked.
Let me know if this helps :)
Thank you Leo, but, where is the execute PHP option in Page Hero?
http://prntscr.com/lnnjnc
I can see only in Hook element.
Regards
Hi there,
Yoast provides a short code for the breadcrumbs in this article, use that as Header Elements won't execute PHP:
https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/
Hi David, I have installed Yoast.
I can`t config in page hero element :(
Regards
You just need to add the shortcode ( provided in the link i shared ) to the Page Hero to display the Yoast breadcrumbs
This is what you'd add to the Page Hero content, as it doesn't accept PHP: https://pastebin.com/0J7zQRGr
Perfect! thank you Tom.
Maybe, you could have a list of "short codes" like [wpseo_breadcrumb] for Page Her content :)
Regards
something strange happens.
When I publish Page Hero, the feature image in the post disappears.
check it please:
https://test.wordpressdesign.cl/sample-page/ heres it`ok
https://test.wordpressdesign.cl/2018/11/19/anapaf-en-la-region-de-la-araucania/ here no image
Regards
Any chance you can open a new topic for the separate question?
It would be great if you can disable the caching plugin too to help us view the code.
Thanks!
ok, open new topic.
Thank you