How to test my theme rich snippets markup?

To know if your theme contains rich snippets markup (also called "structured data markup"), proceed as follows:

Right click on one of your product pages and select "View source code":

 

 

Then, in the source code, look after "itemprop" string :

 

 

If you find some of these strings, it's that your theme integrates rich snippets (data are structured). However, this doesn't mean the rich snippets code is in compliance with Google's requirements. To check the compliance of your theme structured data, read the following section.

Google provides a tool to test the structured data markup compliance on a web page. Go to this page to get this tool and test your markup.

Copy the URL of one of your product pages that includes rich snippets (see the previous section to test if this page contains the markup) and paste it in the "Fetch URL" tab of the pop-up that appears. Click on "Run test"

 

 

Here is the example of a correctly marked up page:

 

 

No error has been detected so the theme manages structured data markup correctly.

 

Here is the example of a page of which the markup was done incorrectly:

 

 

As you can see, the reporting indicates 1 error and 2 warnings. Indeed, it misses the name of a product whereas it's required by Google, so this generates an error. Moreover, Google has detected a non-compliance of 2 prices. Indeed, for the price to be correctly read by Google, price must be formatted with a dot as separator, not a comma, and must not contain the currency sign. For more information, you can read the Google documentation about supported structured data attributes and values.

Note that if you get errors or warnings about your theme markup compliance, we explain you how to proceed in our FAQ "How to fix my microdata / Rich Snippets problems?".

Other FAQs in this category