-
AuthorPosts
-
November 4, 2016 at 6:16 pm #708384
Hi,
I’m getting errors on Google Structured Data tool with my site. I looks like it’s a problem with menus.
Can you please help.
Thanks, Nick
November 7, 2016 at 9:17 am #709075Hi Nick!
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'] == 'image_url' || $args['context'] == 'image'') { unset($attributes['itemprop']); } return $attributes; }
You can add conditional functions if you want to apply this in a specific page or post.
Cheers!
IsmaelNovember 7, 2016 at 10:25 am #709088Hi Ismael,
That’s fixed 6 of the 9 errors. There are 3 more relating to images. Any ideas?
http://thehomeimprovementstudio.co.uk/wp-content/uploads/2016/04/PremierPartnerLogoFullColour-Small.png (The property contentUrl is not recognised by Google for an object of type WebPage.)
Regards, Nick
November 8, 2016 at 7:54 am #709631November 8, 2016 at 12:30 pm #709742Hi,
Not sure why, but that hasn’t worked. The Item Property is still present on the footer images. Can you please take another look.
Thanks
November 9, 2016 at 11:42 am #710173Hi!
How did you add those images? Did you use the image shortcode? Are you familiar with any browser inspector? Inspect the element or image and then extract the actual markup of the shortcode. Rremove the itemprop attribute and then use it in the text widget instead of the actual shortcode. Example:
<div class="avia-image-container-inner"><img class="avia_image " src="//thehomeimprovementstudio.co.uk/wp-content/uploads/2016/04/PremierPartnerLogoFullColour-Small.png" alt="AEG Premier Partner" title="AEG Premier Partner"></div>
Best regards,
IsmaelNovember 9, 2016 at 11:46 am #710176Thanks. Didn’t remember manually adding those tags in the images. All sorted.
November 11, 2016 at 2:47 pm #711153Hi,
glad you could solve it! Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.
Best regards,
Andy -
AuthorPosts
- The topic ‘Error in structured data’ is closed to new replies.