- This topic has 15 replies, 4 voices, and was last updated 5 years, 6 months ago by
David.
-
AuthorPosts
-
April 29, 2020 at 5:21 pm #1262136
Mitch and Justine
We just tried to add breadcrumbs with the following steps:
1) Creating a hook element
2) Adding in this short code as laid out in the Yoast breadcrumb article (see below)<?php
if ( function_exists(‘yoast_breadcrumb’) ) {
yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>’ );
}
?>3) Enabling breadcrumbs through our Yoast plugin
Can you confirm that this is the right code to add in because we could see part of the actual code on the front end of our website. We followed these two articles:
https://docs.generatepress.com/article/adding-breadcrumbs/
https://yoast.com/help/implement-wordpress-seo-breadcrumbs/April 29, 2020 at 8:02 pm #1262259Leo
StaffCustomer SupportHi there,
Can you confirm that execute PHP is checked in the hook element?
Let me know 🙂
April 30, 2020 at 9:27 am #1263475Mitch and Justine
Yes, we did check that box. I tried re-doing it this morning, and this is the error message I’m getting:
Parse error: syntax error, unexpected ‘id’ (T_STRING), expecting ‘)’ in /home/customer/www/brokebankvegan.com/public_html/wp-content/plugins/gp-premium/elements/class-hooks.php(180) : eval()’d code on line 3
April 30, 2020 at 9:31 am #1263482Leo
StaffCustomer SupportI always find the shortcode method much easier:
https://www.screencast.com/t/yhh6JYALXRgMCan you try that instead and make sure to check to execute shortcode this time?
May 1, 2020 at 10:07 am #1265221Mitch and Justine
So, will we have to insert this short code on every post that we do? Or should we insert this short code in the hook element?
May 1, 2020 at 10:09 am #1265223Leo
StaffCustomer SupportIt would be with a hook. Try following the step by step guide here:
https://docs.generatepress.com/article/adding-breadcrumbs/#using-hooks-elementMay 1, 2020 at 6:27 pm #1265633Mitch and Justine
That’s the article we had followed before. So instead of adding the code generated by Yoast, add in this code?
[wpseo_breadcrumb]
May 1, 2020 at 6:29 pm #1265634Mitch and Justine
May 1, 2020 at 6:33 pm #1265636Mitch and Justine
Okay, never mind that short code worked! Thank you!
May 1, 2020 at 9:41 pm #1265714Leo
StaffCustomer SupportNo problem 🙂
July 22, 2020 at 7:44 am #1372133Enrico
Hi Leo,
I have tried to follow your instruction but or it doesn’t work or I am doing something wrong.https://www.dropbox.com/s/42wsupr5ufsib19/Screenshot%202020-07-22%20at%2015.37.03.png?dl=0
https://www.dropbox.com/s/1b5zxs5ib8ehfp1/Screenshot%202020-07-22%20at%2015.35.14.png?dl=0Regards
July 22, 2020 at 8:13 am #1372336Leo
StaffCustomer SupportCan you try the shortcode method as suggested here?
https://generatepress.com/forums/topic/adding-breadcrumbs-4/#post-1263482July 22, 2020 at 8:39 am #1372359Enrico
Hi Leo,
I have done your procedure but nothinghttps://www.dropbox.com/s/7wqcc4bfmvu2gih/Screenshot%202020-07-22%20at%2016.33.55.png?dl=0
https://www.dropbox.com/s/mhmlz6v1jgxgd9i/Screenshot%202020-07-22%20at%2016.33.45.png?dl=0
Regards
EnricoJuly 22, 2020 at 9:33 am #1372425Leo
StaffCustomer SupportThat is not what my screenshot is showing here:
https://generatepress.com/forums/topic/adding-breadcrumbs-4/#post-1263482Are you able to see that screenshot?
It’s showing the shortcode option.
You can also copy the shortcode from this page:
https://yoast.com/help/implement-wordpress-seo-breadcrumbs/Check the shortcode under the Implement breadcrumbs on pages using a shortcode section.
October 13, 2020 at 9:58 pm #1487845Yonatan
Hi. I am doing excatly this but no breadcrumbs are showing on the front-end.
-
AuthorPosts
- You must be logged in to reply to this topic.