Problem with google search console

Dear Theme.co team,
on Google, I always get the same error message for all pages (missing: author, entry-title, updated). Where can I enter this information?
A heartfelt thank you!

Hi There,

Thanks for writing in! To resolve this issue, could you please try adding the following code into your child theme’s functions.php file.

function add_suf_hatom_data($content) {
	$t      = get_the_modified_time('F jS, Y');
	$author = get_the_author();
	$title  = get_the_title();
	if (is_home() || is_singular() || is_archive() ) {
	$content .= '<div class="hatom-extra" style="display:none;visibility:hidden;"><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_suf_hatom_data');

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.