Getting the same issues, just came here to post a request to update the theme for Structured Data > hatom (markup: microformats.org)
Here are the classes to be added:
https://www.acceleratormarketing.com/trench-report/google-analytics-errors-and-structured-data/
I request the developers add this to the core theme, if possible.
For now I worked around it with the child theme functions.php file:
/* GET RECENT POST ITEM
================================================== */
if ( ! function_exists( 'sf_get_recent_post_item' ) ) {
function sf_get_recent_post_item( $post, $display_type = "bold", $excerpt_length = 20, $item_class = "" ) {
from the sf-post-formats.php
file. I imagine one might need to also update the sf-post-formats-new.php
look for the $recent_post
variable and the post-date
css class. In the css class, add an additional css class of updated
.
Like this:
$recent_post .= '<div class="details-wrap">';
$recent_post .= '<h4>' . $item_title . '</h4>';
$recent_post .= '<div class="post-item-details">';
$recent_post .= '<span class="post-date updated">' . $post_date . '</span>';
$recent_post .= '</div>';
$recent_post .= '</div>';
} else if ( $display_type == "bright" ) {
$recent_post .= '<div class="details-wrap">';
$recent_post .= '<div class="author-avatar">' . get_avatar( get_the_author_meta( 'ID' ), '140' ) . '</div>';
$recent_post .= '<h6 class="post-item-author"><span class="author">' . sprintf( '<a href="%2$s" rel="author" itemprop="author">%1$s</a>', $post_author, get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '</span></h6>';
$recent_post .= '<h2><a ' . $post_permalink_config . '>' . $item_title . '</a></h2>';
$recent_post .= '<div class="post-item-details">';
$recent_post .= '<span class="post-date updated">' . $post_date . '</span>';
$recent_post .= '</div>';
$recent_post .= '</div>';
Looking at the author htom, but haven’t updated it yet. I can report back once I find the right spot.