Last active
August 29, 2015 14:06
-
-
Save littlepackage/352c8bb1f43b744ad796 to your computer and use it in GitHub Desktop.
Dequeue Tribe Events CSS if not on Events Page - Wordpress
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
function dequeue_tribe_events_style() { | |
if ( !tribe_is_event_query() ) { | |
// one or more of the following styles will need to be dequeued depending on the default stylesheet used | |
wp_dequeue_style('tribe-events-calendar-override-style'); | |
wp_dequeue_style('tribe-events-calendar-style'); // skeleton or full | |
wp_dequeue_style('tribe-events-full-calendar-style'); // for fully styled tribe | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'dequeue_tribe_events_style', 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment