2015-01-05 42 views
1

我正在嘗試引入Schema.org微數據,以在Google搜索結果中顯示評分星級。爲此,我使用Google結構化數據測試工具(Google Webmaster Tools)來測試我的代碼。下面的代碼段不起作用:爲什麼我的schema.org評分標記不是由Google顯示的地點?

<article itemscope itemtype="http://schema.org/Place"> 
    <div class="rating" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> 
     <meta itemprop="ratingValue" content="4" /> 
     <meta itemprop="bestRating" content="5" /> 
     <meta itemprop="ratingCount" content="1" /> 
    </div> 
    <div class="content"><h1 itemprop="name">This is my Page name</h1></div> 
</article> 

有沒有人有想法,爲什麼不做或做什麼?

回答

0

Google通常不會爲「地點」項目類型顯示彙總評分豐富代碼段。不過,它們確實展示了更具體的地點類型,例如餐館和其他本地商業類型。所以你可能需要對你的標記更具體。

在另一個說明中,隱藏標記的內容(如使用元標記)違反了Google的準則。所以你可能也想解決這個問題。

我希望這會有所幫助。

大衛

+0

非常感謝。我也發現了這一點,但我唯一可以使用的具體類型是LandmarksOrHistoricalBuildings或TouristAttraction,它們都不是由google顯示:(而且我只是使用元標籤,因爲我將評級星標顯示爲(重複)背景圖像。 – bernhardh

相關問題