Add hentry Schema markup using Class

Add SEO friendly markup to HTML webpage, hentry schema is used on Blogger website, and Blogger is Google’s product. That’s why I recommended you to use hentry markup.

How to Do

  • Add class=”hfeed” or class=”htom” on post’s main container.
  • Then add class=”entry-title” with h1 tag on post’s title name.
  • Then add class=”entry-content” for post’s content and SAVE.

I have this simple code, and i share this code with you, Add or change in this code according to your choice. So copy this code and use it.

Code for single.php file

<article id="post-<?php the_ID(); ?>" <?php post_class("hatom"); ?> itemscope="itemscope" itemtype="http://schema.org/CreativeWork">
<div class="entry-header" data-nosnippet>
<h1 class="entry-title" itemprop="name"><?php the_title(); ?></h1>
</div>
<div class="entry-content" itemprop="text">
<?php the_content(); ?>
</div>
</article>

Hope this article helpful for you and you like to add hentry markup using function, So Read Article, Thanks for visiting.