Structured data test: How to fix hentry error in wordpress pages to achieve better SEO

1 Comment

Structured data test in Google webmaster : How to fix hentry error in wordpress pages? This step is very important to achieve better SEO.

hentry error in wordpress for structured data (google)

hentry error in wordpress for structured data (google)

 

Solution: [FREE 🙂 ]

Remove WordPress hentry Class from Pages. To do it, just include following code at the end of your theme’s functions.php:

function themeslug_remove_hentry( $classes ) {
    if ( is_page() ) {
        $classes = array_diff( $classes, array( ‘hentry’ ) );
    }
    return $classes;
}
add_filter( ‘post_class’,’themeslug_remove_hentry’ );

 

Now after adding the code and running the test tool, I get following results (error free) 🙂 – Now the pages will gain better results due to improved SEO.

hentry error fixed for wordpress

hentry error fixed for wordpress

This is author biographical info, that can be used to tell more about you, your iterests, background and experience. You can change it on Admin > Users > Your Profile > Biographical Info page."

About us and this blog

We are a digital marketing company with a focus on helping our customers achieve great results across several key areas.

Request a free quote

We offer professional SEO services that help websites increase their organic search score drastically in order to compete for the highest rankings even when it comes to highly competitive keywords.

Subscribe to our newsletter!

Fields marked with an * are required

More from our blog

See all posts
1 Comment
  1. Generic Propecia Available In Us Auto Viagra Through The Mail Zithromax Order Canada [url=http://brandciali.com]viagra vs cialis[/url] Buy Canadian Aspirin Baclofen Commander 10mg Low Cost 20mg Cialis

  2. Pingback: xm48t5w4x3n2rmfe5xy8rt5m4t

  3. Pingback: wxmsrxte8rnfemr8fwnfrwgfrg

  4. Pingback: cn7v5jdncgsdjkx4m9c5nyecen

  5. Pingback: z3c33mxcwnte5dtgeurws0gfff

  6. Pingback: mxcn5w7xmwncwexnicensrgffg

  7. Pingback: xnc5bsxnrbscngfrfgc4ecgdgf

  8. Pingback: xcn5bsn5bvtb7sdn5cnvbttecc

  9. Pingback: ccn2785xdnwdc5bwedsj4wsndb

 

Leave a Comment

Time limit is exhausted. Please reload the CAPTCHA.