Tagged: structured data
Good morning,
I’ve tested my site on google and I received errors in structured data > web page > contentUrl – see
https://developers.google.com/structured-data/testing-tool/?url=http://www.uebler.com/portfolio-item/x21s-x31s/
Here the page:
http://www.uebler.com/portfolio-item/x21s-x31s/
How to solve this problem?
Thank you, regards!
Hey Peter!
Thank you for using Enfold.
Please add this 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'] == 'body' && is_singular('portfolio')) {
$attributes['itemtype'] = 'https://schema.org/MediaObject';
}
return $attributes;
}
Best regards,
Ismael
Thank you very much – works!