Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #708384

    Hi,

    I’m getting errors on Google Structured Data tool with my site. I looks like it’s a problem with menus.

    https://search.google.com/structured-data/testing-tool/u/0/?url=http://thehomeimprovementstudio.co.uk/#url=http%3A%2F%2Fthehomeimprovementstudio.co.uk%2F

    Can you please help.

    Thanks, Nick

    #709075

    Hi 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!
    Ismael

    #709088

    Hi 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

    #709631

    Hi!

    We modified the code above. Please try it again.

    Best regards,
    Ismael

    #709742

    Hi,

    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

    #710173

    Hi!

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

    #710176

    Thanks. Didn’t remember manually adding those tags in the images. All sorted.

    #711153

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Error in structured data’ is closed to new replies.