Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi,
To be able to display fivestar ratings in the search results of Google, the Schema.org should be supported.
When I enable Schema.org and fivestar, the "ratingValue" is missing. Is it possible to add this "ratingValue" to the average number tag so that Google would understand it ?
Update: Was able to fix this just editing the fivestar theme files and now Google shows the ratings in the search results. This is so cool :)
Comments
Comment #2
jukka792 CreditAttribution: jukka792 as a volunteer commentedComment #3
dbt102 CreditAttribution: dbt102 at BACnet Interest Group - Drupal for BACnet Interest Group - Drupal commented@jukka792 thanks for the info.
You should post the details of what you did so the rest of the community can benefit. Patches are really easy to do, and then you can get 'credit' for the contribution on your Drupal profile as well.
Please see this for how to create the patch --> https://www.drupal.org/project/fivestar/git-instructions
Comment #4
DeeVee CreditAttribution: DeeVee commentedHi jukka792,
How did you associate rich snippets for ratings here? I'd appreciate your advice.
-David
Comment #5
Shuler CreditAttribution: Shuler as a volunteer commentedThis can be achieved by enabling Schema.org UI module and then editing the rating field and assigning "ratingValue" as its Schema.org mapping.