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.

#23368
Weaver
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.