Heads up on the schema JSON-LD local...

User 2823310 Photo

Registered User
312 posts

If your seo json-ld script isn't validating and throwing this error for the code snippet:
"A value for the image field is required"
Google is now requiring that you add an image, even if you already have the logo.
So what I did was write in an image link to the logo (you can put in a picture of your biz too) but I do construction service so it's not brick & mortar.
Anyway to get it to validate you can just add the image like this:
"image": "http://yoursite.com/yourimagefolder/yourimagename.png",
<script type='application/ld+json'>
"@context": "http://www.schema.org",
"@type": "HomeAndConstructionBusiness",
"name": "Your biz name",
"url": "http://yourbizurl.com/index.html",
"logo": "http://yourbizurl.com/yourpicturefolder/yourpicture.png",
"image": "http://yourbizurl.com/yourpicturefolder/yourpicture.png",
"description": "Your biz description",
"telephone": "(555) 555-5555",
"address": {
"@type": "PostalAddress",
"streetAddress": "5555 Yourstreet Ave.",
"addressLocality": "Yourtown",
"addressRegion": "CA",
"postalCode": "555555",
"addressCountry": "USA"
"hasMap": "https://www.google.com/maps/d/viewer?mid=1RGDqQWmsEQxHdPUyNrDLPmJv8Hk&ll=38.39646762762074%2C-122.94650487154775&z=9"

With that image added it then validates.
Just mention that since most of the json-ld generators don't have the new requirement added as yet and you may need to go back and reset your existing code.
in code snippet paste this part:
code example
from between the script tags
User 2706435 Photo

382 posts


I wonder though even if the scripts do not validate, if Google still accepts them. Google's own examples do not pass on their own validator because the examples are old.
User 2823310 Photo

Registered User
312 posts

That's a bit ambiguous on their site but the way they word it if the new ones aren't coded correctly they just don't pick them up for the rich snippets in the SER (search engine results). The existing ones with structured data that do get a SER rich snippet you'd think they would at least give you a grace period or at least to the next crawl.

On the images for cards they recommend a specific size but for the rich snippet they don't mention any, so what you can do is include the height & width so it may not get distorted like this:
"image": {
"@type": "ImageObject",
"url": "http://yourbizurl.com/yourpicturefolder/yourpicture.png",
"height": 239,
"width": 290

Also just a note since I included a map I didn't put in the place geo in my example above... but I'm thinking for local I'm probably going to put that back in. You'd do that like this:
"geo": {
"@type": "GeoCoordinates",
"longitude": "-122.826936",
"latitude": "38.401362"

You can get those co-ordinates from your google map.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.