Site logo

Archived topic

google console warning

8 replies · Started by nana on November 19, 2019

Viewing posts 1–9 of 9

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?

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?

thanks

No problem :)

This archived topic is closed to new replies.