Created
January 7, 2016 18:05
-
-
Save jesseeproductions/3ec14564c9cbfd7d6a46 to your computer and use it in GitHub Desktop.
The Events Calendar - Bypass Genesis Content Archive Settings in Event Views
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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