Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #933178

    Hi
    I have looked at some similar issues others were having with getting rid of the errors in the structured data tool but could’nt find a clear solution on what code I should add.
    Can you please help me here?
    I’m getting the error “The property ImageObject is not recognised by Google for an object of type WebPage.” for all the image items I have on the page. What do I need to to do resolve them?
    I have a child theme so no issues with adding code to whatever php page.
    Thanks!

    #933191

    please feel free to reply these important titles. bizee benefits. the same problems apply to us

    #934151

    Hi,

    Thank you for using Enfold.

    Please try to replace the “ImageObject” property with “image”. Use this filter in the functions.php file.

    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,
    Ismael

    #934209

    This worked perfectly, thanks very much

    #934512

    Hi,

    Glad we could help!
    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Basilis

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘property ImageObject is not recognised by Google for an object of type WebPage’ is closed to new replies.