Responsive Theme errors with Google Structured Data Testing tool
-
My wordpress.com theme Responsive creates errors in Google Structured Data Reporting Tool.
There are errors created for:Error: Missing required field “entry-title”.
Error: Missing required field “updated”.I understand that I cannot edit the html or php for this theme.
How can they be reported to WordPress or the theme creator so that the themes code base can be corrected?This is the fix for the first error:
The title of a post which is mostly enclosed in header tags needs to include a class attribute. If it already has a class attribute then append “entry-title” without quotes to it. To do so:Open single.php located in the theme folder and find. If it is not enclosed in header tag then wrap it into a header tag and add class attribute with value “entry-title”.
as so:<h1 class=”entry-title”><?php the_title(); ?></h1>
The second error is:
Error: Missing required field “updated”.
To fix this:
To remove this warning you need to have a date of content update. The date needs to be closed in a span tag with attribute.
1
<span class=”date updated”>Date</span>
For WordPress users:In the single.php file find the_time or echo get_the_date(); and enclose it into a span tag with attribute.
1 <span class=”date updated”><?php echo get_the_date();?></span>
Or1 <span class=”date updated”><?php the_time(); ?></span>
How can these fixes be implemented so that the Responsive theme will not created the reported errors with
Google’s structured data testing tool.Thanks.
The blog I need help with is: (visible only to logged in users)
-
-
-
@garyid
The main thread for this issue is here > https://en.forums.wordpress.com/topic/unnecessary-line-height-span-tags-suddenly-appearing-in-my-code?replies=6 Please post into it so we can keep all blogger experiencing the same issue together and none fall through the cracks. -
Hi Gary, thanks for the suggestion. Microformat data – which is what Google’s Structured Data tool is looking for – is something we may consider adding in a future update of the theme.
Currently, not all themes support microformats, so Google’s Structured Data tool won’t show all themes as being compliant. There is no harm in this, it’s just not a type of data that we have added to this theme yet.
- The topic ‘Responsive Theme errors with Google Structured Data Testing tool’ is closed to new replies.