2016-11-18 58 views
-1

priceSpecification schema正在返回錯誤,如何解決?網站已經爲用戶發佈的二手車分類列表。Schema標籤:房屋價格規格不被谷歌認可

下面是架構標籤(附帶屏幕截圖),無法粘貼架構標籤代碼。

<div class="pos-rel" itemprop="itemOffered" itemscope itemtype="http://schema.org/Car" > 
 
    <h3 itemprop="name">Toyota Vitz F 1.0 for Sale</h3> 
 
    <div class="price-details generic-dark-grey mb5 mt10" itemprop="priceSpecification" itemscope itemtype="http://schema.org/UnitPriceSpecification"> 
 
     <meta itemprop="priceCurrency" content="PKR"> 
 
     <meta itemprop="price" content="1585000"> 
 
     <span class='pkr'>PKR</span> 15.9 <span>lacs</span> 
 
    </div>

回答

1

閱讀文檔,http://schema.org/Car。轉到頁面底部,點擊示例的微數據標籤。通知http://schema.org/Offer是人員模式的一部分。你能做到這一點像他們的榜樣兩段或使用這樣的

<!-- Car Details --> 
<div id="product" itemprop="itemOffered" itemscope itemtype="http://schema.org/Car"> 
    <h3 itemprop="name">Toyota Vitz F 1.0 for Sale</h3> 
    <!-- Seller Details --> 
    <div itemscope itemtype="http://schema.org/Person"> 
     <strong>Contact Name: </strong> <span itemprop="name givenName">Brent</span> 
     <div itemprop="makesOffer" itemscope itemtype="http://schema.org/Offer" itemref="product"> 
      <span itemprop="priceCurrency" content="PKR">PKR</span> 
      <span itemprop="price" content="1585000">15.9</span> 
     </div> 
    </div> 
</div> 

通知代碼,將驗證在這裏:https://search.google.com/structured-data/testing-tool