Archived topic
Breadcrumbs with Yoast not working for me
14 replies · Started by Norman on October 13, 2019
Hello,
Wondering if you can help with putting breadcrumbs in? It worked with my previous theme and yoast, but can't seem to get it to work with GP -
Followed directions from this page on yoast: https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/
Added this code: <?php
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
}
?>
Used the info from the GP documentation here: https://docs.generatepress.com/article/adding-breadcrumbs/
Here's what I get: https://www.screencast.com/t/i3j2VmsSXv
Any ideas how I can fix this? It "seems" I've done things correctly, but evidently not.
Sorry, but I sent a protected article link. The one below should work for you to be able to see the error I'm getting:
https://churchletters.org/church-letters/absence-church-letters/we-miss-you-at-church
Hi there,
This should help:
https://generatepress.com/forums/topic/adding-breadcrumbs-3/
Let me know :)
So there is shortcode to add too? I don't see that anywhere in the directions. Thanks for pointing me to this, but so far, I can't get it to work.
(Not sure if I should respond on that post, or this one)
Settings in the element:
Instead of the code that you are currently adding, try adding just the shortcode:
https://generatepress.com/forums/topic/adding-breadcrumbs-3/#post-1032295
Let me know :)
I'm adding this shortcode: [wpseo_breadcrumb]
Nothinng is coming up for me and I do have Yoast activated and I don't use caching.
Weird. It should work by default.
Then add your original code, then check to execute PHP instead.
Hmm... I can't get that to work either:
https://www.screencast.com/t/PMMUuefoqYO
No breadcrumbs show up.
Can you activate the parent theme temporarily and see if it makes a difference?
If not you will likely need to check with Yoast's support. I don't see their code showing up at all with either method so something.
I also see some console errors:
https://www.screencast.com/t/BTppssq4Pg
Might be good to disable all plugins except GP Premium and Yoast to test as well.
I would rather not activate the previous theme. It gave me much trouble although the breadcrumbs did work.
I'm waiting to hear back from Yoast on a possible answer.
I'm referring to parent theme and not the previous theme :)
Looks like you are using a child theme, try activating the parent theme.
Sorry. For some reason, Breadcrumbs was not activated in Yoast. I thought it would be fine, but perhaps when installing a new theme, it deactivates first.
My bad!
Appreciate your help.
No problem :)