Hi arlinaite.
First you need a child theme, because, if you directly edit the theme files, all you have edited will be lost.
I will post the tutorial here.
1. You need to remove all hentry markup from your website with this function: Add this to your child theme functions.php file
/**
* Remove ‘hentry’ from post_class()
*/
function ja_remove_hentry( $class ) {
$class = array_diff( $class, array( ‘hentry’ ) );
return $class;
}
add_filter( ‘post_class’, ‘ja_remove_hentry’ );
2. Heuman theme uses the you will also like.., and that produces the rel bookmark errors, so remove that as well. by doing this:
in the original single.php file look for this.
<article <?php post_class(); ?>>
Then in your own child theme, remove
<?php post_class(); ?>
That is it. no more hentry errors. yay!.
3. to migrate to schema, you will do two things
edit your content.php and single.php file
This is what my singles.php file look like, PLEASE copy it all into your child theme single.php file.
<?php get_header(); ?>
<section class="content">
<?php get_template_part('inc/page-title'); ?>
<div class="pad group">
<?php while ( have_posts() ): the_post(); ?>
<article id="post-<?php the_ID(); ?>" itemscope itemtype="https://schema.org/Article">
<div class="post-inner group">
<h1 class="post-title" itemprop="headline"><?php the_title(); ?></h1>
<p class="post-byline"><?php _e('by','hueman'); ?> <span itemprop="author"><?php the_author_posts_link(); ?></span> · <span class="updated" itemprop="datePublished"><?php the_time(get_option('date_format')); ?></span></p>
<?php if( get_post_format() ) { get_template_part('inc/post-formats'); } ?>
<div class="clear"></div>
<div class="entry <?php if ( ot_get_option('sharrre') != 'off' ) { echo 'share'; }; ?>">
<div class="entry-inner" itemprop="articleBody">
<?php the_content(); ?>
<?php wp_link_pages(array('before'=>'<div class="post-pages">'.__('Pages:','hueman'),'after'=>'</div>')); ?>
</div>
<?php if ( ot_get_option('sharrre') != 'off' ) { get_template_part('inc/sharrre'); } ?>
<div class="clear"></div>
</div><!--/.entry-->
</div><!--/.post-inner-->
</article><!--/.post-->
<?php endwhile; ?>
<div class="clear"></div>
<?php the_tags('<p class="post-tags"><span>'.__('Tags:','hueman').'</span> ','','</p>'); ?>
<?php if ( ( ot_get_option( 'author-bio' ) != 'off' ) && get_the_author_meta( 'description' ) ): ?>
<div class="author-bio">
<div class="bio-avatar"><?php echo get_avatar(get_the_author_meta('user_email'),'128'); ?></div>
<p class="bio-name"><?php the_author_meta('display_name'); ?></p>
<p class="bio-desc"><?php the_author_meta('description'); ?></p>
<div class="clear"></div>
</div>
<?php endif; ?>
<?php if ( ot_get_option( 'post-nav' ) == 'content') { get_template_part('inc/post-nav'); } ?>
<?php if ( ot_get_option( 'related-posts' ) != '1' ) { get_template_part('inc/related-posts'); } ?>
<?php comments_template('/comments.php',true); ?>
</div><!--/.pad-->
</section><!--/.content-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Then this is what my content.php file looks like:
<article id="post-<?php the_ID(); ?>" <?php post_class('group'); ?> itemscope itemtype="https://schema.org/Article">
<div class="post-inner post-hover">
<div class="post-thumbnail">
<a>" title="<?php the_title(); ?>">
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('thumb-medium'); ?>
<?php elseif ( ot_get_option('placeholder') != 'off' ): ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
<?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-volume-up"></i></span>'; ?>
<?php if ( is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-star"></i></span>'; ?>
</a>
<?php if ( comments_open() && ( ot_get_option( 'comment-count' ) != 'off' ) ): ?>
<a>"><span><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></span></a>
<?php endif; ?>
</div><!--/.post-thumbnail-->
<div class="post-meta group">
<p class="post-category" itemprop="articleSection"><?php the_category(' / '); ?></p>
<p class="post-date" itemprop="datePublished"><?php the_time('j M, Y'); ?></p>
</div><!--/.post-meta-->
<h2 class="post-title">
<a>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h2><!--/.post-title-->
<?php if (ot_get_option('excerpt-length') != '0'): ?>
<div class="entry excerpt">
<?php the_excerpt(); ?>
</div><!--/.entry-->
<?php endif; ?>
</div><!--/.post-inner-->
</article><!--/.post-->
That is it. Cheers everyone.