Support

Home Forums Event Espresso Premium Hentry/schema on Events page

Hentry/schema on Events page

Posted: February 7, 2018 at 12:33 pm


radiusinvestigations

February 7, 2018 at 12:33 pm

I know in a previous topic you mentioned that you only provide hentry data on the single event pages, however, maybe you can help. The default Events listing page as well as any pages that use the event listing shortcode populate hentry data. see examples here:
https://prvteye.com/events/
https://prvteye.com/anti-crime-techniques/

I currently have the following script in my theme’s functions.php file running to remove hentry:

function themeslug_remove_hentry( $classes ) {
    if ( is_single() | is_page() | is_category() ) {
        $classes = array_diff( $classes, array( 'hentry' ) );
    }
    return $classes;
}
add_filter( 'post_class','themeslug_remove_hentry' );

This script has successfully removed hentry on all pages except for the events listing and shortcode. Is there another hook that you are using for the events listings? I tried is_espresso_events() , but adding that caused all pages on the site to show up as blank with the post id in the upper left hand corner.


Josh

  • Support Staff

February 7, 2018 at 12:52 pm

Hi there,

I checked the pages you linked to and the schema formatted data doesn’t look like anything that Event Espresso adds. Event Espresso only adds event related schema data to the single event pages. Your theme or another plugin may be adding that information to those pages.

The support post ‘Hentry/schema on Events page’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso