On my homepage, I am getting this error for Web Page > ImageObject: “The property ImageObject is not recognized by Google for an object of type WebPage.”
URL to the test I ran is:
https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fgatehealing.com%2F
Not sure how to resolve this
Hey gatehealing,
Please try to replace the “ImageObject” property with “image”. Open up the child theme functions.php and add this code:
add_filter('avf_markup_helper_attributes', 'avf_markup_helper_attributes_modified', 10, 2);
function avf_markup_helper_attributes_modified($attributes, $args) {
if($args['context'] == 'image') {
$attributes['itemprop'] = 'image';
}
return $attributes;
}
Don’t forget to purge or remove the cache and do a hard refresh before testing the page.
Best regards,
Peter
Thanks Dude! I’m being told by some Google Webmaster Tools Search Console help forum that I need to get rid of all the markup other than the LocalBusiness markup that I put in myself. I seem to remember a setting someplace that turns off markup?
EDIT: Figured it out . . . looks like I didn’t need the code if I’m to turn off the generic code provided by the theme. I’ll leave the snippet in there though in case I need any of that code later.
Jon
Hey!
Great, glad you found a solution :)
Cheers!
Peter