The following runs through the Google Structured Data Testing Tool as expected:
<div>
<div itemprop="publisher" itemscope id="organization-example" itemtype="https://schema.org/Organization">
<a itemprop="url" href="https://example.com">
<img itemprop="image logo" src="https://example.com/images/logo.png" alt="LOGO">
<span itemprop="name">EXAMPLE</span>
<span itemprop="description">This is an EXAMPLE</span>
</a>
</div>
</div>
<div itemscope itemtype="https://schema.org/WebPage" itemref="organization-example">
</div>
But when I try using a BlogPosting
it breaks the logo
property:
<div>
<div itemprop="publisher" itemscope id="organization-example" itemtype="https://schema.org/Organization">
<a itemprop="url" href="https://example.com">
<img itemprop="image logo" src="https://example.com/images/logo.png" alt="LOGO">
<span itemprop="name">EXAMPLE</span>
<span itemprop="description">This is an EXAMPLE</span>
</a>
</div>
</div>
<article
itemscope
itemtype="https://schema.org/BlogPosting"
itemref="organization-example"
>
</article>
With the error:
https://example.com/images/logo.png
(The attribute logo.itemtype has an invalid value.)
Can anyone explain why? And what steps I could take to fix it?
itemprop
on the same line as aitemtype
, since publisher is a child of Organization, WebPage and BlogPosting. Better to use<body itemscope itemtype="https://schema.org/Organization">
then<article itemscope itemtype="https://schema.org/BlogPosting">
<span itemprop="publisher">
etc... There shouldn't be a need to repeat the logo multiple times, particularly in a blog post. – Simon Hayter♦ Aug 17 '16 at 12:01itemprop
on the same line asitemtype
. – Arth Aug 17 '16 at 12:11