Google Authorship entry-title & updated.
-
I’m trying to update my google authorship but I’m getting these errors and when I do the research I am instructed to update the code on the single.php page however I can’t find any of the code people are listing.
ex:
Fix Missing required field “entry-title”
Your title code should have the “entry-title” class. Normally yow would see001
<h1 class=”title single-title”><?php the_title(); ?></h1>
you cannot remove or replace the “title single-title” attribute. Removing it would break your single.php page title’s CSS. What you can do is add the word “entry-title” and your code should look like001
<h1 class=”title single-title entry-title”><?php the_title(); ?></h1>
Fix Missing required field “updated”
look for the code below on your WordPress theme’s single.php file.001
<span class=”post_date”><?php the_time(‘j F,Y’); ?></span>
then add “date updated” attribute to it. Your code should look like001
<span class=”post_date date updated”><?php the_time(‘j F,Y’); ?></span>
Fix Warning: Missing required hCard “author” and Missing required field “name (fn)”
This will fix these 2 warnings. On your WordPress theme’s single.php file, look for001
<span class=”theauthor”><?php the_author_posts_link(); ?></span>
or001
<span class=”theauthor”><?php the_author(); ?></span>
replace it with001
<span class=”vcard author”>
002
<span class=”fn”><?php the_author_posts_link(); ?></span>
003
</span>
or001
<span class=”vcard author”>
002
<span class=”fn”><?php the_author(); ?></span>
003
</span>
- The topic ‘Google Authorship entry-title & updated.’ is closed to new replies.