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.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Josh 1 week, 5 days ago ago

Topic Tags

Tagged: ,

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!