Created
November 17, 2014 14:49
-
-
Save lennartvdd/a9427ba47d634bcf2ec1 to your computer and use it in GitHub Desktop.
implement schema.org aggregate rating
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span itemprop="review" itemscope itemtype="http://data-vocabulary.org/Review-aggregate"> | |
<span itemprop="rating" style="display:none;">4</span> | |
<span itemprop="count" style="display:none;">1</span> | |
</span> | |
<!-- SHOULD BECOME --> | |
<span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> | |
<span itemprop="ratingValue" style="display:none;">4</span> | |
<span itemprop="reviewCount" style="display:none;">1</span> | |
<meta itemprop="ratingCount" content="1" /> | |
</span> | |
<!-- | |
note: entire block should fall in http://schema.org/Product element | |
Test the changes to HTML source with: | |
Google webmaster tools > Uiterlijk van Site Search > Gestructureerde gegevens > Product > (click a random Page-URL) > Live gegevens testen. | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment