Closed Fred64640 closed 2 years ago
This is bug in your theme, not related to revws module
Hello, if I activate the Rich Snippets I have an error in the google console search for "missing itemRiviewed field" and I don't know why.
Thanks Frédéric
Hello, I have this issue too. Can you tell me how do you solved it? Thank you very much
Hello, to this day it is not completely resolved I have never managed to correctly activate the richh snippsets. A priori it is a theme problem I think that the option works well on a default theme but not on a custom theme although I have tried everything.
Le lun. 11 mars 2024 à 15:52, carrinhos3b @.***> a écrit :
Hello, if I activate the Rich Snippets I have an error in the google console search for "missing itemRiviewed field" and I don't know why. [image: Capture d’écran 2021-11-29 202138] https://user-images.githubusercontent.com/92171844/143929727-da0c4b16-1efa-4e5b-97e0-a01f1375de7b.jpg Thanks Frédéric
Hello, I have this issue too. Can you tell me how do you solved it? Thank you very much
— Reply to this email directly, view it on GitHub https://github.com/getdatakick/revws/issues/157#issuecomment-1988629344, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV7G4RCOZQZT2STZUWKIFPTYXXAK3AVCNFSM5I75KR32U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJYHA3DEOJTGQ2A . You are receiving this because you authored the thread.Message ID: @.***>
--
I have the classic theme, and the same problem... Thank you
Again, this is not an issue with the module. It's the issue with the theme itself.
The generated HTML code of the product page looks like this:
<div itemscope="" itemtype="https://schema.org/Product">
<h1 itemprop="name">Product name</h1>
<span itemprop="price">$100</div>
<div class="revws-section">
<div class="review" itemprop="review" itemscope="" itemtype="http://schema.org/Review">
<span itemprop="reviewRating" itemscope="" itemtype="http://schema.org/Rating">4</span>
</div>
</div>
</div>
The theme is responsible to emit metadata about product itself (itemtype="https://schema.org/Product"
), revws module is responsible for emitting metadata about review (itemtype="http://schema.org/Review"
)
If the review <div itemtype="http://schema.org/Review">
is inside product <div itemtype="https://schema.org/Product">
, the review will be associated with product.
You will get the missing itemReviewed error if
1) your theme does not emit metadata about product
2) your theme placed reviews section "outside" of <div itemtype="https://schema.org/Product">
scope
Neither of that is issue with revws module.
I never said the problem is of the revws module... isn't that what's in cause. The module is amazing! But the problem exists to many people and I'm only searching what to do to correct it (a explanation for newbies... where and what exactly to modify in the theme to correct the problem). Thank you all
Hello, if I activate the Rich Snippets I have an error in the google console search for "missing itemRiviewed field" and I don't know why.
Thanks Frédéric