Hi lucian
Getting “MainContentofPage” error warning when i test the newspaper theme powered website URL with Google rich snippets testing tool https://developers.google.com/structured-data/testing-tool/
Please test this URL http://www.wpdiv.com/download-mazel-multipurpose-html-template/ with google rich snippets to regenerate the issue. Not only the above post, all the posts returns the same error.
How can i get rid of this issue? In which files i have to make changes?
Note : I am using Style 2 template for my posts.
Expecting your kind help
Hi,
Unfortunately for newspaper theme can appear some errors on testing tool, but all these errors will be fixed in version 5 of Newspaper.
Thanks!
Hi,
This markup error: http://screencast.com/t/NNuEv4fG ..appears because you’ve modified the itemtype="http://schema.org/Review attribute from post template – article tag. This should be ://schema.org/Article so make sure you change this and test again.
The “Node is empty” warning doesn’t mean much – it means there’s no child schema elements inside that parent – you won’t be penalized for something like that at all.
I’ve noted this as I also noticed this on our demo site and we’ll fix this in next theme updates.
Thanks
Hi,
Where have you altered this. In posts’s page template here: http://screencast.com/t/I7h3S0JIR or in the get_item_scope function, here: http://screencast.com/t/8f6wzwFPIu
Thanks
I have tested the above specified files and everything seems fine. Here is the current files used in the child theme.
Hi,
Remove this itemprop="mainContentOfPage" from single post template 2: http://screencast.com/t/YZ2Etzg0ZXyb then test again. It should fix the markup error: http://screencast.com/t/NNuEv4fG
We will have a look into theme’s review system and fix this issues in the next theme update.
Sorry for the inconvenience!
Let me know how it goes!
Thanks
Hi,
The itemprop="mainContentOfPage" microdata property is not an required property for the articles or reviews markup. The maincontentofpage property is a webpage type property: http://screencast.com/t/0nAUlGzFw9 not for articles or reviews types.
The markup system will be reviewed in version 5 (available towards the end of the month) of the theme all will work fine.
Thanks