T.Takahashi STEP7.構造化データエラー「mainEntityOfPage」フィールドの値は必須ですの修正方法 2017-06-23T04:43:27Z
0;ゼロからはじめる!

STEP7.構造化データエラー「mainEntityOfPage」フィールドの値は必須ですの修正方法

「mainEntityOfPage」フィールドの値は必須ですを修正する

「mainEntityOfPage」って何?

構造化データを検索エンジン(Google)に伝える際のマークアップの一つである。「mainEntityOfPage」とは記事の主なるトピック。記事中に複数の内容がある場合にどの記事内容が主たる記事なのかを指定する。

Bloggerで「mainEntityOfPage」の記述方法

SETP.1構造化データエラー「author」フィールドの値は必須ですの修正方法で<div class='post-header'>を作成したならば、その直下にコードを追加する。

なければ・・・

<div class='post hentry' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>の記述さがし、この直下にコードを追加

もし上の記述がなければ、<b:includable id='post' var='post'>(記事内)でもど良いであろう。

追加コード

CSS部分
.post-header {
display:none;
}

<div class='post-header'>
<div class='post hentry' itemscope='itemscope' itemtype='http://schema.org/BlogPosting’>

<span itemprop='author'><data:post.author/></span>

<span class='published' itemprop='datePublished'><data:post.timestampISO8601/></span>

<span class='updated' itemprop='dateModified'><data:post.lastUpdatedISO8601/></span>

<span itemprop="name"><data:post.author/></span>

<span itemprop='headline'><data:post.title/></span>

<div itemprop='publisher' itemscope='itemscope' itemtype='https://schema.org/Organization'>
<span itemprop="name"><data:blog.title/></span>
<span itemprop='logo' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>
<span itemprop='url'>ロゴマークのURL</span>
<meta content='ロゴマークの横サイズ' itemprop='width'/>
<meta content='ロゴマークの縦サイズ' itemprop='width'/>
</span>
</div>
<meta expr:itemid='data:post.link ? data:post.link : data:post.url' itemType='https://schema.org/WebPage' itemprop='mainEntityOfPage' itemscope='itemscope'/>
</div><!-- post-header -->
  1. 22行目:
    <meta expr:itemid='data:post.link ? data:post.link : data:post.url' itemType='https://schema.org/WebPage' itemprop='mainEntityOfPage' itemscope='itemscope'/>
    を追加する。

スポンサーリンク

0 件のコメント :

コメントを投稿