Home › Forums › Tutorials and Hints from Users › Eliminate Google structured data Hatom errors on WordPress sites. › Re: Eliminate Google structured data Hatom errors on WordPress sites.
July 14, 2015 at 19:02 UTC - Views: 6
#23368
Keymaster
Add the filter as found in the article:
function themeslug_remove_hentry( $classes ) {
if ( is_page() ) {
$classes = array_diff( $classes, array( ‘hentry’ ) );
}
return $classes;
}
add_filter( ‘post_class’,’themeslug_remove_hentry’ );
directly, as is (although you could change ‘themeslug’ to ‘weaverii’ or something else unique), into the Advanced Options : <HEAD> Section : Actions and Filters box. I tested it and it works.

