Good morning,
I’ve tested my site on google (https://developers.google.com/structured-data/testing-tool) and I’ve received 1 errors, due to a image error in rich snippet. How to solve this problem?
I’ve tested this page (blog page)
http://www.regiavideo.com/blog-video-pubblicitario/
This link shows the problem
http://www.regiavideo.com/wp-content/uploads/2015/08/Rich_snippet_error.jpg
The italian words means that the image attribute is missing but compulsory.
Thank you, regards!
Hey Tom!
Thank you for using Enfold.
Please add this in the functions.php file:
add_filter('wp_get_attachment_image_attributes', 'wow_img_attr', 10, 2);
function wow_img_attr($attr) {
$attr['itemprop'] = 'image';
return $attr;
}
Cheers!
Ismael
It works: thank you so much, Ismael.
Regards!