-
AuthorPosts
-
May 8, 2015 at 9:20 pm #441783
Hello Team.,
Structured Data Testing Tool (Google Webmaster Tools) has detected some errors on “mainContentOfPage “. How can I fix it? Hope there is no need to change parent theme.blog '> <main class='content units av-content-full alpha av-blog-meta-author-disabled av-blog-meta-html-info-disabled' role="main" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="https://schema.org/Blog" >Thanks a lot,
AdelaideMay 11, 2015 at 10:00 am #442313Hey turistai!
Thank you for using Enfold.
Is this happening on single post? Please refer to this link for a possible fix: https://kriesi.at/support/topic/schema-org-modifications/
Best regards,
IsmaelMay 11, 2015 at 7:08 pm #442643Hello Ismael,
yes it is happening only to one post. Should I try the instruction you linked?
The error states that “Blog” is not a valid target for the property “mainContentOfPage”.
Thanks again.May 12, 2015 at 6:35 am #442801Hi!
Yes, try this mod: https://kriesi.at/support/topic/schema-org-modifications/#post-432733
Best regards,
IsmaelMay 12, 2015 at 4:08 pm #443116Thanks Ismael. I will try it.
May 13, 2015 at 4:39 am #443506Hey!
Alright. Don’t forget to add the additional modification in order to fix the warnings. Let us know if it works.
Regards,
IsmaelMay 13, 2015 at 2:52 pm #443743This reply has been marked as private.May 14, 2015 at 10:44 am #444204Hey!
Actually, you can’t add the code in the child theme. You need to edit the helper-markup.php directly in the parent theme folder. Just look for the code:
$attributes['itemprop'] = 'mainContentOfPage';Replace it with:
if (is_singular('post')) { unset($attributes['itemprop']); } else { $attributes['itemprop'] = 'mainContentOfPage'; }If there’s an error after the modification, just override the file.
Regards,
IsmaelMay 15, 2015 at 4:25 pm #445010This reply has been marked as private.May 15, 2015 at 4:29 pm #445014This reply has been marked as private.May 18, 2015 at 7:01 pm #445956Hey!
glad Ismael could help you. Let us know when you need some more help with the theme. We are happy to assist you.
Cheers!
Andy -
AuthorPosts
- The topic ‘"mainContentOfPage" Error on Structured Data Test’ is closed to new replies.
