This is on product pages right? It doesn’t really make sense to include that data on product pages. Who needs to know the creator of the product page?
It’s on my pages.
I do have these lines in my storefront-child theme functions.php.
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wlwmanifest_link' );
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'start_post_rel_link' );
remove_action( 'wp_head', 'index_rel_link' );
remove_action( 'wp_head', 'adjacent_posts_rel_link' );
remove_action( 'wp_head', 'wp_shortlink_wp_head' );
I had the same problem that my wordpress pages didn’t have the hatom author and updated. I found the following that I put in my custom functions (Plugin) that worked.
//mod content fix Google hAtom Missing author Missing updated
//mod content
function hatom_mod_post_content ($content) {
if ( in_the_loop() && !is_page() ) {
$content = '<span class="entry-content">'.$content.'</span>';
}
return $content;
}
add_filter( 'the_content', 'hatom_mod_post_content');
//add hatom data
function add_mod_hatom_data($content) {
$t = get_the_modified_time('F jS, Y');
$author = get_the_author();
$title = get_the_title();
if ( is_single() || is_page()) {
$content .= '<div class="hatom-extra"><span class="entry-title">'.$title.'</span> was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>';
}
return $content;
}
add_filter('the_content', 'add_mod_hatom_data');
Does this affect SEO? Is it necessary to fix it? I don’t think the author is necessary.
If you change this line in your snippet;
if ( is_single() || is_page()) {
to this;
if ( is_single() || is_page() || is_product() ) {
The content will be included on product pages as well.
Personally I don’t think it’s necessary, but I am not an SEO expert.
I see. Thank you. I’ll just ignore this issue for now.