我已在我的網站上爲我的iPhone應用程序yycParking設置Google豐富網頁代碼。相關的HTML看起來像這樣:適用於iPhone應用程序的Google豐富網頁代碼段無法使用
<div itemscope itemtype="http://schema.org/SoftwareApplication">
<!-- ... -->
<h2 class="txt-align-center" itemprop="description">
<strong>yycParking</strong> provides real time updates of parking in downtown Calgary
</h2>
<!-- ... -->
<div class="two-column last">
<!-- ... -->
<p>We created <strong itemprop="name">yycParking</strong> to enhance a service provided by ...</p>
<!-- ... -->
</div>
<div class="two-column last txt-align-right">
<!-- ... -->
<a title="Download the YYC Parking App from the iTunes store now" href="http://itunes.apple.com/ca/app/yycparking/id460852653?mt=8" target="_blank" itemprop="url">
<img class="alignnone size-full wp-image-436" title="app-store-badge" src="http://randomtype.ca/cms/assets/app-store-badge.png" alt="" />
</a>
<!-- ... -->
</div>
<p>
<meta itemprop="image" content="http://randomtype.ca/cms/assets/app-icon-124x124.png" />
</p>
</div>
你會從我已經包含以下元素上面的HTML看到:
- 模式:
itemscope itemtype="http://schema.org/SoftwareApplication"
- 說明:
itemprop="description"
- 名稱:
itemprop="name"
- URL:
itemprop="url"
- 圖片:
itemprop="image"
從閱讀rich snippet software application specs我相信我已經擊中了4個必需項目,並正確地確定了我遵循的模式。
運行它通過Rich Snippet testing tool我得到一個結果,不會將代碼段標識爲iPhone應用程序,並跳出像「剪切繩」那樣的漂亮圖像。
我錯過了什麼嗎?我想主宰卡爾加里停車場 - 但谷歌讓我退縮!1:P
輝煌!這真棒,我非常欣賞這一努力。我完全沒有想到創建另一個頁面,並配對降低繩子來測試它。賞金很好賺! –
耶,剛剛贏得了我的第二個賞金!謝謝! :d –