丰富网页摘要:项目类型之外的微数据itemprop?
我最近决定通过添加丰富的代码段-微数据来更新网站. 事情是我是这种事情的新手,对此我有一个小问题.
I've recently decided to update a website by adding rich snippets - microdata. The thing is I'm a newbie to this kind of things and I'm having a small question about this.
我正在尝试定义组织,如下面的代码所示:
I'm trying to define the Organization as you can see from the code below:
<div class="block-content" itemscope itemtype="http://schema.org/Organization">
<p itemprop="name">SOME ORGANIZATION</p>
<p itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">Manufacture Street no 4</span>,
<span itemprop="PostalCode">4556210</span><br />
<span itemprop="addressLocality">CityVille</span>,
<span itemprop="addressCountry">SnippetsLand</span></p>
<hr>
<p itemprop="telephone">0444 330 226</p>
<hr>
<p><a href="mailto:info@snippets.com" itemprop="email">info@snippets.com</a></p>
</div>
现在,我的问题出在以下方面:我还想标记LOGO以便形成完整的组织资料,但是徽标位于页面的标题中,而我上面张贴的div则位于页脚和页面的样式/布局不允许我在此处添加徽标并使其可见.
Now, my problems consists in the following: I'd like to also tag the LOGO in order to make a complete Organization profile, but the logo stands in the header of my page, and the div I've posted above stands in the footer and the style/layout of the page doesnt permit me to add the logo in here and also make it visible.
那么,我该如何解决呢?最好的解决方案是什么?
So, how can I solve this thing? What's the best solution?
谢谢.
Dan,您可以使用以下代码简单地在徽标架构中添加:
Dan, you could simply add in the logo schema with this code:
<img itemprop="logo" src="http://www.example.com/logo.png" />
因此,在您的示例中,您可以将其简单地标记为:
So in your example, you could simply tag it as:
<div class="block-content" itemscope itemtype="http://schema.org/Organization">
<p itemprop="name">SOME ORGANIZATION</p>
<img itemprop="logo" src="http://www.example.com/logo.png" />
<p itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">Manufacture Street no 4</span>,
<span itemprop="PostalCode">4556210</span><br />
<span itemprop="addressLocality">CityVille</span>,
<span itemprop="addressCountry">SnippetsLand</span></p>
<hr>
<p itemprop="telephone">0444 330 226</p>
<hr>
<p><a href="mailto:info@snippets.com" itemprop="email">info@snippets.com</a></p>
</div>
我认为这应该适用于您的特定情况,并且实际上不会显示徽标,您也不必单独标记徽标.希望有帮助.
I believe that should work for your particular case and it won't actually show the logo and you wouldn't have to mark up the logo separately. Hope that helps.