Archived topic
Author page Breadcrumb issue
11 replies · Started by Enrico on May 20, 2021
Hi there.
To be honest, I'm not sure the issue is related with GeneratePress, anyway I would like to hear your opinion, please.Search Console notice that there is a problem in this page of my site: https://www.guidedolomiti.com/author/enrico-maioni/page/27/
The error is: Missing field "id"
{"@type":"WebPage","@id":null,"url":null,"name":"Archivi per Enrico Maioni"}},
Have you please any advice? Thank you.
Hi there,
I don't believe this is related to GeneratePress - the easiest way to determine this is to activate a Twenty series WP theme to test.
Also how did you know that it's a breadcrumb issue? GP doesn't have breadcrumbs built-in so maybe check with the support team of the plugin?
Thanks Leo.
Iadd breadcrumb using hooke element as you suggest here.
Maybe is related with Yoast SEO.
I'm sorry I waste your time...
I will investigate a little bit more :-)
Ciao.
No problem at all!
I was wondering how you knew the error is because of the breadcrumb?
Would be good to check with Yoast's support as well to see if they have any ideas :)
I know the error is because of the breadcrumbs because Search Consol sent me an email that said: "Search Console has detected that your site is affected by 1 Breadcrumb issues." :-)
AHh I see. In that case Yoast should be able to help :)
Hi Leo,
thanks for your patience...
I contacted Yoast support team, and after investigate they said:
"Hi Enrico,
We have run a test on the URL you provided and there are 2 breadcrumb collections. The one collection page schema type is generated by Yoast SEO. If you click on it and scroll to the bottom part, you'll find the breadcrumb on there since Yoast SEO generates all the schema markup as a JSON graph.
Please, note that you won't see any errors at all on the collection page schema type and is generated by Yoast SEO.
On the other hand, the breadcrumb list schema is the one that Google structured data testing tool is showing the error which isn't generated by Yoast SEO plugin but generated by a 3rd party source (most probably your currently active theme). Therefore, we recommend you please disable the additional breadcrumb list from your site and this will most probably fix the issue."
As you suggest, I activate a Twenty series WP theme to test, and the error is still there.
It seems that is not a GeneratePress fault, but I'm wondering if it's possible that the hook Element that I add is related with the issue.
This is the code I added:
add_action( 'generate_after_header', function() {
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb( '<div class="grid-container grid-parent"><p id="breadcrumbs">','</p></div>' );
}
} );
I discovered that the error appears only on the last page (.../guidedolomiti.com/author/enrico-maioni/page/27/). There is not any previous post. Maybe it is helpful...
Thank you
Hi there,
I checked the source code of your site and i see there Schema is added by the WP Schema Pro Plugin.
There are comments for bot the schema scripts it is adding:
<!-- site-navigation-element Schema optimized by Schema Pro -->
<!-- breadcrumb Schema optimized by Schema Pro -->
I assume WP Schema Pro has an option to disable the breadcrumb ?
Thanks David.
I know there is also WP Schema Pro Plugin.
I already tried to disable the plugin, but no success.
WP Schema Pro Plugin is disabled now, but if you try to test the URL with the tool the issue is still there :-(
Also, in my previous message I said: I discovered that the error appears only on the last page (…/guidedolomiti.com/author/enrico-maioni/page/27/). There is not any previous post. Maybe it is helpful…, but I was wrong, the issue is in all pages.
Try disabling any Cache Plugins, then speak to your host and ask them to Flush any Page Caching on the Server.
Then recheck the site - this is to test whether that code has been cached. If the code is still there then you will need to speak with the Plugin author on how to remove it.
Thank you David.
I did, but the issue is still there. I will try again ask at Yoast SEO.
Thank you.
You're welcome