Madhan Ramamoorthy
asked 7 years ago

Hi
  I’m running WP 4.1 and the latest Yoast plugin and I’m seeing an error in Google Webmaster Tools that says:
Missing: author
Missing required hCard “author”.
Missing: updated
I’m not sure where I forgot to add in that information. Any ideas how I add that to each post/page?
I believe that this issue about “Missing: updated” might not be related to the SEO plugin but with the theme i am currently using DW-Focus.
Please Help
The answer you given in the above link does not provide any value.. where to make the change in dw-focus theme.. please little bit more clear atleast this time .
 
Thanks
Timtime.
 

2 Answers
DominicStaff
answered 7 years ago

Hi,
Apologies for the delay in replying to you, I have helped you fix this issue. Please wait It typically takes up to a week or so to stop showing these as errors once the changes are made. Please tell me know, if you still face there issue.

Madhan Ramamoorthy
replied 7 years ago

where can i find the fix.?

Dominic Staff
replied 7 years ago

Please find the functions.php file (line 479)

Madhan Ramamoorthy
replied 7 years ago

Hi, i am sorry, you are referencing with some other person, i completely understand of managing more questions. You never send any code to me, neither i. I just recently installed this theme in my website. i am getting above error. Just give me a straight fix, how to solve it. or please update the theme, so i can download and update my website. Thanks,Madhan

Dominic Staff
replied 7 years ago

Hi,You can find the datetime in the function “dw_focus_posted_on” of the inc/template-tags.php file, then find the line 140.
Also, you can find the author in the function “dw_focus_post_actions” of the functions.php file.

Madhan Ramamoorthy
replied 7 years ago

Please i request all the forum members.. can someone explain "Dominic".. what is my questions is.. I asked very simple question.. also i said give me a straight answer…. Non of the above answers he provided make no sense to me. may be i am dump… I am not gonna ask any more in this forum.. i will live with what i got.. Period "Dominic" please if you don't have extra two minutes to answer questions properly.. please close the forum. . you are giving extra headache by giving meaning less answers to the questions…. Please don't waste your time.. and my time tooo… Thank You SOOOOO much. for wasting my time…

DominicStaff
answered 7 years ago

Hi,
Sorry about that.
You can open the teplate-tags.php file in the folder path “wp-content\themes\dw-focus\inc”. Find the line 139 to line 147, replace the following code:
Warning: Missing required field “updated”

function dw_focus_posted_on() {
the_category();
printf( '<time class="entry-date" datetime="%3$s" pubdate>%4$s</time>',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
dw_human_time()
);
}

With new code: 

function dw_focus_posted_on() {
the_category();
printf( '<time class="entry-date updated" datetime="%3$s" pubdate>%4$s</time>',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
dw_human_time()
);
}

Warning: Missing required hCard “author”
– You can open the functions.php file. Find the line 478 to line 481. 
Replace the following code: 

<div class="author-info">
<?php echo get_avatar( get_the_author_meta( 'ID' ), 96 ); ?>
<a class="author-name" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"><?php echo get_the_author(); ?></a></h2>
</div><!-- .author-info -->

With new code:

<div class="author-info vcard">
<?php echo get_avatar( get_the_author_meta( 'ID' ), 96 ); ?>
<a class="author-name url fn n" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"><?php echo get_the_author(); ?></a></h2>
</div><!-- .author-info -->

Hope this helps !

Powered by DW Question & Answer Pro