Remove dateModified related warning appearing during Structured data testing

So your blog has structured data and now want to make sure that the web crawlers should also understand that you have placed structured data on your blog. The best way to make sure that is to test your blog URL using https://search.google.com/structured-data/testing-tool. This is not a validator of the tags in your blog but a tool, using which Google makes sure it can read structured data from the page and if required can appear as a rich card in a search result.

If you have a blog on Blogger and have validated it using the Google structured data testing tool, there are chances that you might have seen below warning:

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

Below are the steps to how to remove dateModified related warning appearing during Structured data testing.
  1. Go to Blogger.com
  2. Select the Blog in which you want to make the change.
  3. Click "Template" in the left menu.
  4. Click on "Edit HTML"
  5. Once the HTML editor appears, click inside the editor and press Ctrl+F. This will show a search box appear on the top right corner of the editor as below:
  6. Paste the following code in the search box and hit enter to find it.
    <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'> The above code might be deleted if you have already done a fix for "mainEntityOfPage" warning and could have been replaced by following:

    <div class='post hentry uncustomized-post-template' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
  7. Just below the the code found in the above step paste following code:
    <meta expr:content='data:post.timestamp' itemprop='datePublished'/>
    <meta expr:content='data:post.lastUpdatedISO8601' itemprop='dateModified'/>
  8. Save the template.

Make Money from Surveys

Popular posts from this blog

The current master key cannot be decrypted

Schema.Object has an unresolved reference to Schema