Vladimir Unguru
New Member
I'm using the DaVinci theme because I like it very much. So, I wanted to see if it's compliant to Google's requirements in terms of SEO, and it failed the structured data test for the pages where a list of products is displayed. Fortunately it's very easy to correct this.
The file in question is products/product.php and all that needs to be changed is this code near the end of file:
into this:
I'm currently using a child theme with a copy of just the faulty and corrected template file.
The file in question is products/product.php and all that needs to be changed is this code near the end of file:
Code:
<div class="price" itemprop="offers" itemscope>
into this:
Code:
<div class="price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
I'm currently using a child theme with a copy of just the faulty and corrected template file.