Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jesseeproductions/3ec14564c9cbfd7d6a46 to your computer and use it in GitHub Desktop.
Save jesseeproductions/3ec14564c9cbfd7d6a46 to your computer and use it in GitHub Desktop.
The Events Calendar - Bypass Genesis Content Archive Settings in Event Views
/**
* The Events Calendar - Bypass Genesis Content Archive Settings in Event Views
*
* This snippet overrides the Genesis Content Archive settings for Event Views
*
* Event Template set to: Admin > Events > Settings > Display Tab > Events template > Default Page Template
*/
add_action( 'get_header', 'tribe_genesis_bypass_genesis_do_post_content');
function tribe_genesis_bypass_genesis_do_post_content() {
if ( class_exists( 'Tribe__Events__Main' ) && tribe_is_event_query() && ! is_single() ) {
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
add_action( 'genesis_entry_content', 'the_content', 15 );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment