【问题标题】:Problem with Google structured data testing tool and microformat hcardGoogle结构化数据测试工具和微格式hcard的问题
【发布时间】:2020-02-08 16:43:52
【问题描述】:

美好的一天。 我正在尝试实现组织的微格式(hcard),以便 Google 和 Yandex 都能正确地感知它。 Yandex 中一切正常,但 Google 的结构化数据验证器会显示 pricerange 字段的警告 - 但它已被指示。它甚至写在验证器中......这是一个截图

这是代码本身:

<div class="vcard">
  <a class="fn org url" href="http://www.commerce.net/">CommerceNet</a>
  <img class="logo-ft photo" src="images/logo-footer.png" alt="Company Logo">
  <div class="adr">
    <span class="type">Work</span>:
    <div class="street-address">169 University Avenue</div>
    <span class="locality">Palo Alto</span>,  
    <abbr class="region" title="California">CA</abbr>&nbsp;&nbsp;
    <span class="postal-code">94301</span>
    <div class="country-name">USA</div>
  </div>
  <div class="tel">
   <span class="type">Work</span> +1-650-289-4040
  </div>
   <div>Pricerange: 
   <span class="pricerange">from $10 to $20</span>
  </div>
</div>

可能是什么问题?提前感谢所有提供帮助的人。

【问题讨论】:

    标签: structured-data microformats hcard


    【解决方案1】:

    class="fn org url" 中删除org,或将其替换为任何其他字符串,这样您的sn-p 就会得到验证。 org似乎制造了一种冲突。

    【讨论】:

    • 抱歉,但这对我不起作用...我需要代码中的 org 和 fn,它们应该具有相同的值。我认为这个问题无法解决,我会拒绝这个标记并使用另一个(schema org)。谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-06
    • 2016-08-26
    • 2017-07-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多