Last active
August 29, 2015 13:56
-
-
Save ckpicker/9327495 to your computer and use it in GitHub Desktop.
Events Calendar 3.4.1 // Remove HTML Before only on Single Event Pages
This file contains 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
add_action('tribe_events_before_html','customize_html'); | |
function customize_html($code) { | |
//If viewing a single event page, then don't display anything | |
if(tribe_is_event() && is_single()) { | |
return ''; | |
} else { | |
return $code; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment