A Value for the URL Field Is Required in Blogger or Blogspot - Theblogproject

Monday, August 5, 2019

A Value for the URL Field Is Required in Blogger or Blogspot

A photo with a man holding a URL or link sign

Have you encountered the same error (see error image below) when testing your structured data using Google's Structured Data Testing Tool and implemented workarounds you found on the internet but still didn't fix the error?

A Value for The URL Field is Required Error

Here's my solution which I created through code experimentation. Backup your template first before proceeding.

Search this code inside your template theme HTML code:

[<div itemprop='image' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>]

Paste the code below under the above code:

[<meta expr:content='data:post.url' itemprop='url'/>]

Here's what the final result will look like:

URL Field Is Required Solution

Preview your theme first, if it looks good then save your theme.

Now go back to the Structured Data Testing Tool to check. That's my solution, I hope it helps!

By the way, I have already asked this at Webmaster Central Help Forum with the title How to fix this error, "A value for the URL field is required."?.

Image by Rawpixel via Freepik.

No comments:

Post a Comment