How to Solve mainEntityOfPage field is recommended on Structured Data Testing Tool

Solve mainEntityOfPage field is recommended

Your getting Warning from Structured Data Testing Tool that mainEntityOfPage field is recommended. Please provide a value if available. This blog post will cover all your Structured Data Testing Tool.

Let’s see how to fix mainEntityOfPage field is recommended. Please provide a value if available.

How To Fix mainEntityOfPage field is recommended

“The mainEntityOfPage field is recommended. Please provide a value if available.” 
 
Follow this steps to solve mainEntityOfPage field is recommended error.
  1. Log into your Blogger Dashboard.
  2.  Click Theme.
  3. Click  Edit HTML.

The mainEntityOfPage field is recommended. Please provide a value if available

  • Search the word <b:includable id=’post’ var=’post’>.  And you will see the line

<b:includable id=’post’ var=’post’>

<div class=’post hentry uncustomized-post-template’ itemprop=’blogPost’ itemscope=’itemscope’ itemtype=’http://schema.org/BlogPosting’>

  • Replace by the below code

<b:includable id=’post’ var=’post’>

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

      <meta itemscope=’itemscope’ itemprop=’mainEntityOfPage’  itemType=’https://schema.org/WebPage’ expr:itemid=’data:post.link’ content= ‘data:post.link : data:post.url’/>

  • Now look for another one <b:includable id=’mobile-post’ var=’post’>. And you will see the line

<b:includable id=’mobile-post’ var=’post’>

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

  • Replace by the below code

<b:includable id=’mobile-post’ var=’post’>

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

     <meta expr:itemid=’data:post.link’ content= ‘data:post.link : data:post.url’ itemType=’https://schema.org/WebPage’ itemprop=’mainEntityOfPage’ itemscope=’itemscope’/>

  • Once you replace it Click on Save Button and Check again in Structured Data Testing Tool now your issue will be solved
Now this will solve your mainEntityOfPage field is recommended error.
 

Leave a Comment