Hello Jose,
You are most welcome and thank you for using Ridizain.
First of all let me start by saying the advice given on that link is bad advice! By directly editing theme files you risk loosing your edits each time the theme is updated.
The advice should be to use a plugin to add those elements if at all possible and if not then the next best thing is to use a child theme.
OK, now on to the edits
The date: the_time('j F,Y')
is a standard output as part of WordPress core depending on user settings which can differ greatly.
So we developer use get_the_date()
function to retrieve the date format in themes with an entry-date class.
The Author: class="vcard author"
This is included in the theme as class="author vcard"
followed by class="url fn n"
class so not sure why you’d get an error on that unless Google specifically requires that to be class="vcard author"
and just class="fn"
?
You can find these in the file template-tags.php located in the inc folder of the theme.
Hope that helps point you in the right direction.
Regards,
Zulf
Hi Zulf! Thanks for the reply.
First of all, you’re right about using a child theme. I toke it for granted when I posted, but should have made it explicit 🙂
Regarding your suggestion, I’ll will give it a try.
However, I have tested two other websites that I run against Google Structured Data Testing Tools and got the same errors, so although it could be a “theme related error”, we should not blame it on Ridizain especifically, because I use different themes on the other sites.
I’ll give you any feedback should I get to a fix for this.
All the best!
Jose
I’ll give you any feedback should I get to a fix for this.
That will very much be appreciated, thank you – and likewise, if I come up with a solution will be sure to share it 🙂
I’ll be sure to look in to how that tool works and see what fixes can be done in this theme and implemented in future themes.
Closing thread as resolved for now but feel free to open a new if the need be.
Regards,
Zulf