Home › Forums › WordPress Themes – Premium › Celestial (Celestial Reloaded) › Structured Data breed authority Issue › Reply To: Structured Data breed authority Issue
Appreciate the update, time to figure the Google ‘needs’…
Before i look into the changes, the search function that you’ve added (thank you), it doubles the width of the ‘social icon bar’. Is there an option to put this back to how it should be please?
Further works.
I ran the update and i still have trouble with the structured data side where i receive the following errors on Gogole’s Webnmaster tools. they are as follows;
Missing: author
Missing: entry-title
Missing: updated
The following page states entering this code will fix the issue. Before entering the code, i wanted to see if you could confirm that please?
//mod content
function hatom_mod_post_content ($content) {
if ( in_the_loop() && !is_page() ) {
$content = ''.$content.'';
}
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()) {
$content .= ''.$title.' was last modified: '.$t.' by '.$author.'';
}
return $content;
}
add_filter('the_content', 'add_mod_hatom_data');