Tagged: itemprop, schema markup errors
-
AuthorPosts
-
December 11, 2017 at 6:45 pm #887533
Hello,
in Enfold default implementation of Schema.org markup I don’t see @type”: “ImageObject” that is the one which might show the picture of the product and could make a great difference in click through rate.
Is it possible to add it?
Thank you
MauroDecember 12, 2017 at 3:03 pm #887952Hey Mauro,
Please open /enfold/includes/helper-markup.php file in Appearance > Editor and find
case 'image': $attributes['itemscope'] = 'itemscope'; $attributes['itemtype'] = 'https://schema.org/ImageObject'; break;
and change it to
case 'image': $attributes['itemprop'] = 'ImageObject'; $attributes['itemscope'] = 'itemscope'; $attributes['itemtype'] = 'https://schema.org/ImageObject'; break;
Best regards,
YigitDecember 13, 2017 at 5:37 pm #888475Hi Yigit,
Thank you
i have duplicated the file
/enfold/includes/helper-markup.php
to
/enfold-child/includes/helper-markup.php (/wp-content/themes/enfold-child/includes/helper-markup.php)
and modified as suggested but I cannot find “ImageObject” searching in the source outputted code of any productMauro
December 18, 2017 at 2:50 pm #890023Hi Mauro,
Sorry for the late reply!
For the time being, please consider using a plugin such as this one – https://wordpress.org/plugins/schema/. We will discuss this with our devs.
Best regards,
YigitDecember 18, 2017 at 3:42 pm #890040ok
do you mean that in a future update you will add support for ImageObject?
Best regards
MauroDecember 20, 2017 at 3:41 pm #890808The site also doesn’t pass this new test from google about rich snippets and structured data
https://search.google.com/test/rich-results
(https://webmasters.googleblog.com/2017/12/rich-results-tester.html)
Best regards
MauroJanuary 3, 2018 at 2:16 am #892668Hi,
Thank you for the info. The theme contains basic schema or rich snippets features so it has to be extended or modified for specialty sites such as yours. And please note that that the “Rich Results Test” is still in beta version so it’s not accurate. Please use the “Structured Data Testing Tool” instead.
// https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fattarperfumes.net%2F
Best regards,
IsmaelJanuary 3, 2018 at 12:17 pm #892786do you think to add in the next future a correct support for ImageObject for products?
Should I suggest it in https://kriesi.at/support/enfold-feature-requests/ ?
MauroJanuary 4, 2018 at 6:13 am #893105Hi,
I’m not sure if this is going to be included in the theme because the rich snippet structures vary on different websites so it has to be configured manually. In the meantime, you can use the following filter to unset the ImageObject type.
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') { unset($attributes['itemscope']); unset($attributes['itemtype'); } return $attributes; }
Best regards,
IsmaelJanuary 25, 2018 at 6:15 pm #902944Hello,
I see that in the new Enfold update you have worked on image schema.You say:2018 January 24th – Version 4.2.2
– improved: schema.org image element markupI have tested one demo product page https://kriesi.at/themes/enfold/product/humo-floss/
and seems that you have made a great job
https://search.google.com/structured-data/testing-tool?hl=IT#url=https%3A%2F%2Fkriesi.at%2Fthemes%2Fenfold%2Fproduct%2Fhumo-floss%2FIf I update the theme, should I delete before the code you have provided in this post?
Thank you
MauroJanuary 26, 2018 at 12:46 pm #903349Hi,
Yes, you should delete the filter above because it disables the ImageObject type.
Best regards,
IsmaelFebruary 13, 2018 at 1:42 am #911446Hi guys!
I think I am having the opposite problem. ImageObject = The property ImageObject is not recognized by Google for an object of type WebPage. And failing the structured data markup on the pages where a logo slider, team member, testimonials, image appears.
<div class=’slide-entry-wrap’ itemprop=”ImageObject” itemscope=”itemscope” itemtype=”https://schema.org/ImageObject” ><div class=’slide-entry flex_column no_margin post-entry slide-entry-overview slide-loop-1 slide-parity-odd av_one_third first real-thumbnail’><img itemprop=”thumbnailUrl” width=”300″ height=”135″ src=”
Help!!
Thank you so much!!
Havi
February 14, 2018 at 12:53 am #911999Hi,
@havi: Please open a new ticket and put the site url in the private field. We’ll check it there.Best regards,
IsmaelFebruary 15, 2018 at 7:48 pm #912890Thank you, Ismael! Done and done! :)
Warmly,
Havi
February 16, 2018 at 5:16 am #913103 -
AuthorPosts
- The topic ‘Schema.org @type": "ImageObject"’ is closed to new replies.