Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Run our function early on in the wp_head action
- */
- add_action( 'wp_head', 'remove_tribe_theme_styles_for_single_events', 5 );
- /**
- * Check if it is a single event and remove the relevant stylesheet.
- */
- function remove_tribe_theme_styles_for_single_events() {
- global $wp_query;
- if ( isset($wp_query->tribe_is_event) && $wp_query->tribe_is_event && $wp_query->is_singular )
- wp_dequeue_style( TribeEvents::POSTTYPE . '-calendar-style' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement