2016-03-10 1 views
1

У меня возникла проблема с получением логотипа издателя и изображения в блоге, чтобы проверить использование инструмента тестирования структурированных данных Google.Ошибки в Microdata для изображения/логотипа как часть BlogPosting

Некоторые образцы разметки, что я в настоящее время является:

<article class="post" itemscope itemprop="blogPost" itemtype="http://schema.org/BlogPosting"> 
    <div class="preview"> 
     <h2 itemprop="mainEntityOfPage headline"><a href="/blog/improving-the-patient-experience-through-the-revenue-cycle-part-1">Improving the Patient Experience through the Revenue Cycle Part 1</a></h2> 
     <div class="meta"> 
     <span itemprop="datePublished" class="published-date">Friday, February 19, 2016</span> 
     <span class="sep">|</span> 
     <span itemprop="author" class="author"><a title="Posts by Laurie Shoaf" href="/blog/?author=Laurie+Shoaf">Laurie Shoaf</a></span> 
     <span class="sep">|</span> 
     <span class="category"><a title="Posts in Revenue Cycle Management" href="/blog/?category=Revenue+Cycle+Management">Revenue Cycle Management</a></span> 
     <span class="sep">|</span> 
     <span class="comments"><a title="Improving the Patient Experience through the Revenue Cycle Part 1 Comments" href="/blog/improving-the-patient-experience-through-the-revenue-cycle-part-1#comments">Comments<span class="hide" itemprop="discussionUrl">/blog/improving-the-patient-experience-through-the-revenue-cycle-part-1#comments</span></a></span> 
     </div> 
     <p itemprop="description" class="snippet">This three part series will focus on strategies to augment revenue cycle operations in order to improve the patient experience. In the coming weeks we will share methods designed to enhance patient communications and ideas for maximizing performance when using an early-out or extended business offic...</p> 
     <a itemprop="url" class="btn blue" href="/blog/improving-the-patient-experience-through-the-revenue-cycle-part-1">Continue Reading &raquo;</a> 
     <span class="hide" itemscope="" itemprop="publisher" itemtype="http://schema.org/Organization"><span itemprop="name">CCi</span><img itemprop="logo" src="/media/cci-small.png" alt="CCi Logo" title="CCi | Power on the Inside" /></span> 
     <span class="hide" itemprop="dateModified">2/19/2016</span> 
     <img itemprop="image" src="/media/blog featured/blog-post.png" class="hide" alt="Blog Post Graphic" title="Improving the Patient Experience through the Revenue Cycle Part 1" /> 
    </div> 
    </article> 

Ошибки я получаю на стороне тестирования являются:

  • издатель -> логотип: Атрибут ItemType имеет недопустимое значение ,
  • image: Требуется значение поля изображения.

Каков правильный способ вложить эти свойства в схему «blogPost», чтобы пройти проверку?

+0

Возможный дубликат [Schema.org NewsArticle: недопустимое значение для логотипа собственности] (http://stackoverflow.com/questions/36135578/schema-org-newsarticle-invalid-value-for-logo-property) – unor

ответ

1

В обоих случаях Google хочет увидеть пункт ImageObject (для отображения их Article Rich Snippet).

<div itemprop="logo" itemscope itemtype="http://schema.org/ImageObject"> 
    <!-- … --> 
</div> 

<div itemprop="image" itemscope itemtype="http://schema.org/ImageObject"> 
    <!-- … --> 
</div> 
+0

Ага, это сделал трюк - мне пришлось добавить некоторые вложенные скрытые промежутки, но этот тип элемента работал. – ToxicLogix

Смежные вопросы