Archived topic
Breadcrumbs in page header
3 replies · Started by Dan on January 29, 2018
Hi
I created a page header template for all my pages and I would like to add yoast breadcrumbs under the page title.
So, this is the "content" section of my page header:
<h1>{{post_title}}</h1>
and I would like the breadcrumbs to show under the title:
<h1>{{post_title}}</h1>
{{Yoast Breadcrumbs}}
I didn't see a hook for adding the breadcrumbs php template code, is there a way to do this?
Thanks,
Dan
Hi Dan,
I believe this is what you have to do: https://generatepress.com/forums/topic/acf-field-to-page-header/#post-278439
Can you give it a shot?
Thanks Leo,
I actually found a different solution, now that I saw the generate shortcode option.
Yoast has a shortcode for adding the breadcrumbs:
[wpseo_breadcrumb]
More info here:
https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/
Thanks,
Dan
Awesome.
Glad you figured out!