How to get rid of Google WebMaster errors in the Hueman WordPress theme

google-webmaster-structured-data

This is the goal: zero Google Webmaster errors on the Structured Data page for your WordPress site!

If you use the fabulous Hueman theme, there are only a few simple changes you need to make.

Here’s a complete list of changes, straight from my own site, tanster.com!

1. content.php, content-standard.php, content-featured.php

Replace

<p class="post-date"><?php the_time('j M, Y'); ?></p>

With

<p class="post-date date updated"><?php the_time(get_option('date_format')); ?></p>

Replace

<h2 class="post-title">

With

<h2 class="post-title entry-title">

2. single.php

Replace

<h1 class="post-title"><?php the_title(); ?></h1>

With

<h1 class="post-title entry-title"><?php the_title(); ?></h1>

Replace

<p class="post-byline"><?php _e('by','hueman'); ?> <?php the_author_posts_link(); ?> · <?php the_time(get_option('date_format')); ?></p>

With

<p class="post-byline"><?php _e('by','hueman'); ?> <span class="vcard author"><span class="fn"><?php the_author_posts_link(); ?></span></span> · <span class="updated"><?php the_time(get_option('date_format')); ?></span></p>

3. inc/related-posts.php

Replace

<h4 class="post-title">

With

<h4 class="post-title entry-title">

Replace

<p class="post-date"><?php the_time('j M, Y'); ?></p>

With

<p class="post-date date updated"><?php the_time(get_option('date_format')); ?></p>

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: