2017-05-18 12 views
0

構造化マークアップをTheatreEventに適用しようとしています。相続人は私が働いているコード:https://search.google.com/structured-data/testing-toolスキーマ構造化マークアップ

<!-- MAIN CONTENT --> 

    <div class="container" itemscope itemtype="http://schema.org/TheaterEvent"> 

    <div class="col-md-3"> 

     <div class="event-details"> 
     <h3>Event Info</h3> 
     <p itemprop="startDate"><strong>Date: </strong><?php the_field('date_of_event'); ?></p> 
     <p itemprop="doorTime"><strong>Time: </strong><?php the_field('start_time'); ?> – <?php the_field('end_time'); ?></p> 
     <p><strong>Price: </strong><?php the_field('price'); ?></p> 
     <p><strong>Venue: </strong><?php the_field('venue'); ?></p> 
     </div> 
     <div class="book-event-button"> 
     <a href="<?php the_field('button_link'); ?>" target="_blank" class="btn btn-plum btn-lg btn-event" role="button"><?php the_field('button_text');?></a> 
     </div> 
     <div class="book-event-button" style="margin-top:20px;"> 
     <a href="<?php the_field('event_pack_upload'); ?>" target="_blank" class="btn btn-teal btn-lg btn-event" role="button"><?php the_field('event_pack_button_text');?></a> 
     </div> 
     <div class="book-event-button" style="margin-top:20px;"> 
     <a href="<?php bloginfo('url'); ?>/youth-community/support-us/events/tips-tools/" target="_blank" class="btn btn-plum btn-lg btn-event" role="button">TIPS AND TOOLS</a> 
     </div> 
    </div>  



    <div class="col-md-9"> 
     <div class="page-header"> 
     <h1 itemprop="name"><?php the_title(); ?></h1> 
     <p itemprop="description"><?php the_field('event_description'); ?></p> 
     </div>  
    </div>  

    </div> 

あなたは、私がた項目タイプとにitempropなどを使用してマークアップを追加しようとしました...しかし、私はGoogleのチェッカーでエラーの多くを見ている見ることができますhttps://www.leicesterymca.co.uk/show/?showid=b74e95df-58f7-e611-80d7-00505601004cと2つのDIVに広がっ情報が問題だった私は不思議は...

任意の指導をいただければ幸いですされました:

ページはこちらです。

答えて

0

スキーマガイドラインを満たすためにサイト内で変更する必要があることはたくさんあります。

あなたのサイトのデモを適切なデータで伝えようとしました。

<div class="container" itemscope itemtype="http://schema.org/TheaterEvent"> 

<div class="col-md-3"> 
    <div class="event-details"> 
     <h3>Event Info</h3> 
     <strong>Date: </strong><p itemprop="startDate">Sun 21 May 2017 19:30</p> 
     <strong>Time: </strong><p itemprop="duration">20:00</p> 
    </div> 
</div>  

<div class="col-md-9"> 
    <div class="page-header"> 
     <h1 itemprop="name">The Wild Swan World Tour</h1> 
     <div itemprop="location" itemscope="" itemtype="http://schema.org/PerformingArtsTheater"> 
      <meta itemprop="name" content="Shakespeare's Globe"/> 
      <meta itemprop="address" content="London, UK"/> 
     </div> 
     <p itemprop="description">Foy Vance knows how to write a song. It’s a naturally-born but dedicatedly-finessed skill that has led him to collaborate with artists as diverse as Plan B, Sheryl Crow and Rudimental, synced his music on multiple TV shows ranging from Grey’s Anatomy to the finale of Sons Of Anarchy, and caught the ears of some of the biggest players (in every sense) in music, from Elton John to Ed Sheeran.</p> 
    </div>  
</div>  

<div itemprop="workPerformed" itemscope="" itemtype="http://schema.org/CreativeWork"> 
    <div itemprop="creator" itemscope="" itemtype="http://schema.org/Person"> 
     <meta itemprop="name" content="William Shakespeare"/> 
    </div> 
</div> 

</div> 

あなたはTheaterEventでスキーマを表示しようとしている時に名前と場所の特性が必要としなければならないことに注意してください。

日付と時刻の形式はISO 8601 date formatである必要があります。

上記のコードをスキーマテストツールでテストすると4つの警告が表示されますが、そのようなデータがない場合は回避できます。

上記の劇場イベントのリンクで、デモでさらに確認できます。

関連する問題