Archived topic
google console warning
8 replies · Started by nana on November 19, 2019
I got a warning from Google about my products. After the last crawl, they found that all of my products were missing aggregate rating, brand, review and there was no global identifier. And I am told that it has to do with my theme, so Can you help me fix these issues?
Hi there,
Which pages are these errors being displayed? Are they on the single product pages or the product archives?
Google console pointed out this url
https://davinasclothing.com/product/buckle-strap-high-heels/
But it seems that it affects all the urls in my woocommerce shop.
Hi there,
This is happening because something is setting the itemtype as "Product" - it looks like you have a plugin adding JSON-LD to the page.
Setting it as "Product" is good, as it is a product, but that particular itemtype requires certain things on the page (rating, brand, review etc..). Since you're using JSON-LD, you'll want to set those up in the plugin adding the code - their support should be able to point you in the right direction.
Also, if you're using JSON-LD, you'll want to disable the schema that GP adds by default by adding this PHP:
add_filter( 'generate_schema_type', '__return_false' );
Hope this helps :)
Does that JSON-LD come from another plugin?
And where do I add the PHP, because I don't have access to my control panel?
So, what will that PHP code do?
The code removes schema from GP:
https://docs.generatepress.com/article/generate_schema_type/
and can be added using one of these methods:
Adding PHP: https://docs.generatepress.com/article/adding-php/
thanks
No problem :)