Skip to content

Instantly share code, notes, and snippets.

Little Package littlepackage

Block or report user

Report or block littlepackage

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@littlepackage
littlepackage / dequeue_events_style
Last active Aug 29, 2015
Dequeue Tribe Events CSS if not on Events Page - Wordpress
View dequeue_events_style
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
}
You can’t perform that action at this time.