Skip to content

Instantly share code, notes, and snippets.

@brianjking
Forked from jesseeproductions/ecp-remove-gen-bc
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianjking/ffa2c29b3b59d6451ad9 to your computer and use it in GitHub Desktop.
Save brianjking/ffa2c29b3b59d6451ad9 to your computer and use it in GitHub Desktop.
/*
* Remove Genesis Breadcrumbs from the Event Calendar View Pages
* The Events Calendar @3.8
* Genesis @2.1.2
*/
add_action( 'genesis_before', 'tribe_remove_genesis_breadcrumbs' );
function tribe_remove_genesis_breadcrumbs() {
if( tribe_is_upcoming() || tribe_is_past() || tribe_is_map() || tribe_is_photo() || tribe_is_month() || tribe_is_week() || tribe_is_day() || tribe_is_photo() ) {
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment