2014-01-21 43 views
4

如果我使用模式数据创建了隐藏字段,搜索引擎会如何反应?Schema.org - 关于隐藏元素的数据

$100.00 USD 

我感到被迫这样做的原因是因为当我使用谷歌网站管理员工具,使我的架构它需要被标记的价格。

所以我真的需要标记价格,如果我标记隐藏的价格会发生什么?

请注意,我不想在此特定情况下显示价格。

+1

这个问题似乎是题外话,因为它是关于SEO –

回答

20

您想使用元标记隐藏微数据。

例如,

<div itemscope itemtype="http://schema.org/Product"> 
    <span itemprop="name">Funky Skirt</span> 
    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> 
     <meta itemprop="price" content="100.00" /> 
     <link itemprop="availability" href="http://schema.org/InStock" />In stock 
    </div> 
</div> 

这是一个更好的办法来掩盖微观数据比使用CSS,因为谷歌不喜欢它,当内容被隐藏的或者

visibility: hidden; 

display: none; 

希望这会有所帮助。

+0

这个工具可以帮助我们: https://developers.google.com/structured-data/testing-tool/ – ZenithS

+0

这是黄金。正是我在找什么。 – dchayka

2

但是,要记住的另一件事是,如果您希望Google为您的产品显示丰富的摘要,则必须至少标记产品名称,信息,报价/价格和ISO货币代码。因此,通过使用meta标签将价格隐藏给访问者,您基本上将您的产品标记取消为合格摘要。你可能会也可能不会在乎,但我只是想我会提到它。

+0

你的意思是说明? – andershagbard

+0

基本上,是的。当然,无论如何,你可能会希望将其加入到你的标记中。 – daviddeering