主页Rich Snippets [英] Homepage Rich Snippets

查看:115
本文介绍了主页Rich Snippets的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我的商店展示Rich Snippets,它适用于产品和类别,但它不显示我的网站/主页的评级/评论。

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.

以下是我的代码

<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?

推荐答案

您的评分/评论数据不包含要显示的评分所需的所有元素。例如,最高可能的评级值 bestRating 为5,但可能的最低值是多少?

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?

您实际评价(或审核)的产品或服务是什么?除非您的微观数据与其非常清楚地联系起来,否则它将无法理解 - 您可能希望他们对 http://架构进行评级。您提供的组织/服务,或使用 http://schema.org/LocalBusiness 为您的企业评分或 http://schema.org/Organization - 将其嵌套在另一个模式中。属性 aggregateRating 在这些属性中可用,您可以使用,从语义上来说,这意味着您对 Place 进行评级即即业务在那个位置。我看不出有什么理由不起作用。

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.

谷歌实际上说的是 https://developers.google.com/structured-data/rich-snippets/reviews?hl=en&rd=1


我们支持各种schema.org类型的评论和评级,包括商家,产品和不同的创意作品,如书籍或电影。当Google找到有效的评论或评分标记时,我们可能会显示一个包含星标的丰富代码段以及来自评论或评分的其他摘要信息。

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.

稍后您可以对LocalBusiness进行评级:

Later on it is clear you can rate a LocalBusiness:


确保评论或评级标记明确指出特定产品或服务,如图所示在上面的例子中。通过将审阅或评级嵌套在另一个schema.org类型的标记(例如schema.org/Book或schema.org/LocalBusiness)中,或者使用该schema.org键入的元素作为itemReviewed属性的值来执行此操作。 / p>

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.

这篇关于主页Rich Snippets的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆