Structured data update
-
Thank you, guys, for the update. Most of the error messages regarding the structured data have disappeared now. However, I still get ‘A value for the image field is required.’ Am I missing something?
I think this is related to the featured image, because I get 1 error per blog post and 10 errors on the blog page.
-
Hey Laura,
Where are you seeing this? Have you set featured images for all your posts?Hannah
Hey Hannah,
Yes, I have featured images set for all posts.
The issue is BlogPosting schema related and the error shows in the Google Structured Data Test tool.
I had a different thread opened for this and Ben said he would update the theme, which he did and most errors related to the schema disappeared, except for this one.
However, although I wrote in that thread, it’s an old one I didn’t get an answer anymore. Hence I opened a new one.
I imagine I’m doing something wrong, but I would like to figure out what.
Thanks,
LauraWhats the url?
Ben
Here’s an example, Ben http://www.bylauraiancu.com/declutter-organize-blog-design
Thanks!
On that page the theme is not adding an image for you.
So unless you add image information for google schema on the image your directly adding into the content its not going to be added. The theme can only add schema tags to images it controls. You content is your content.Okay, so how do I add image information for google schema on the images inside posts?
And what about the post page http://www.bylauraiancu.com/blog?
Thanks,
LauraLooks like it’s missing itemprop=”contentUrl” in the image tag. I’ll update for the blog page.
In terms of your single page you need to follow: https://schema.org/ImageObject
Google requires an imageobject in there markup tester, they used to support image https://schema.org/image but not anymore. So that is why everything has to change.
An html example:
<div itemscope itemtype="http://schema.org/ImageObject"> <h2 itemprop="name">Beach in Mexico</h2> <img src="mexico-beach.jpg" alt="Sunny, sandy beach." itemprop="contentUrl" /> <meta itemprop="url" content="mexico-beach.jpg"> <meta itemprop="width" content="300"> <meta itemprop="height" content="200"> </div>Please be aware of why you are doing this as an error in there markup tester is not an error like you get a bad score it’s just an error in that your posts won’t show in a news feed.
Kadence Themes
Yes, that’s exactly why I want my blog posts to be schema error free, so they stand a chance to show in the news feed/rich snippets.
I have several images per blog post. Yet, there’s only 1 error. From what I understand, schema requires there is an image that represents this article (a featured image). I don’t understand where I should add the HTML example you gave me though.
Could you please give me more details?
Thanks a lot!
Laura
Hi, I would really appreciate more details as of where to add this html and if I need to add the whole html example or just parts of it… Thanks!
Schema doesn’t require an image object, google does. It doesn’t have to be one image it can be multiple. You are adding images through wordpress but not in a format that google sees as an image object and thus will not be recognized as an image. Since this is your content and you are adding the image (presumably through the add media button) you need to click on the “text” tab of your editor and add the schema html to your image html that the media button is adding.
For example the media button likely output this into your content:
<img src="mexico-beach.jpg" alt="Sunny, sandy beach." />And you need to change that to be at least this:
<div itemscope itemtype="http://schema.org/ImageObject"> <img src="mexico-beach.jpg" alt="Sunny, sandy beach." itemprop="contentUrl" /> <meta itemprop="url" content="mexico-beach.jpg"> <meta itemprop="width" content="300"> <meta itemprop="height" content="200"> </div>All of course with the correct src urls and width and height.
Does that help clarify? You can see all this on the link I posted above or in googles schema area.
Ben
Kadence ThemesHi, I added the code around the first image of one of the posts, but the error is still there and there are some blank lines added under the image. Could you please have a look? I probably did something wrong http://www.bylauraiancu.com/declutter-organize-blog-design
I’m pretty sure I did something wrong, but for the life of me I can’t figure it out. I would greatly appreciate your input. Thanks!
Looks like your issue is that google changed this again and now doesn’t allow an image object to be inside the “article” and still be considered for the “blog posting” image.
As I see it you only have one option and thats to use the theme image option which will place your featured image above the post title and thus outside the “article” content.
Which means you are going to have to use the image format. And set the post head to image.
Otherwise you can create a plugin that adds the image somewhere else outside the main post content…
This is really so silly. I just pushed out version 1.5.4 which has a workaround which as along as you have a featured image should allow you to get past google schema check on the single post page without having to hack.
Ben
This is awesome, Ben! Thank you ever so much!
The topic ‘Structured data update’ is closed to new replies.
