Homepage Rich Snippets

只谈情不闲聊 提交于 2020-01-07 06:14:20

问题


I am trying to display Rich Snippets for my store which is working fine for products and categories but it does not display rating/reviews for my website/homepage.

Below is my code

<span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
  <meta itemprop="ratingValue" content="4" />
  <meta itemprop="bestRating" content="5" />
</span>

Is it something I am doing wrong or Google does not allow this for homepage?


回答1:


No, review rich snippets should only be used in cases where "the main topic of the page needs to be about a specific product or service." -- using them on your homepage in general wouldn't be like that.




回答2:


your rating/review data does not contain all the elements needed fot the ratings to be shown. For example, there is a highest possible rating value bestRating of 5, but what is the lowest possible value?

What Product or Service are you actually rating (or reviewing)? Unless your microdata is very clearly linked to it then it won't understand - you probably want them to rate a http://schema.org/Service you provide, or to rate your business with http://schema.org/LocalBusiness or http://schema.org/Organization - so nest it inside another schema. The property aggregateRating is available within these, which you could use, semantically it means you are rating the Place ie the business at that location. I can't see any reason why this would not work.

What google actually says is on https://developers.google.com/structured-data/rich-snippets/reviews?hl=en&rd=1

We support reviews and ratings for a wide range of schema.org types, including businesses, products, and different creative works such as books or movies. When Google finds valid reviews or ratings markup, we may show a rich snippet that includes stars and other summary info from reviews or ratings.

Later on it is clear you can rate a LocalBusiness:

Make sure the review or ratings markup refers clearly to a specific product or service as shown in the examples above. Do this by nesting the review or ratings within the markup of another schema.org type — such as schema.org/Book or schema.org/LocalBusiness — or by using that schema.org typed element as a value for the itemReviewed property.




回答3:


As per the Google's guidelines, Rich Snippet is not for home page. Here's a response from Google's Webmaster Trend analyst John Mueller in this reference:

No, review rich snippets should only be used in cases where "the main topic of the page needs to be about a specific product or service." -- using them on your homepage in general wouldn't be like that.

https://webmasters.stackexchange.com/questions/69292/rich-snippets-review-rating-on-homepage/69408#69408



来源:https://stackoverflow.com/questions/31595823/homepage-rich-snippets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!