Skip to content

Instantly share code, notes, and snippets.

@KittenCodes
Created November 24, 2019 10:39
Show Gist options
  • Save KittenCodes/a3fc5ed2564b5056c8bbca6da322a705 to your computer and use it in GitHub Desktop.
Save KittenCodes/a3fc5ed2564b5056c8bbca6da322a705 to your computer and use it in GitHub Desktop.
The Events Calendar - Event Popup
function tribe_add_gridview_class( $classes ) {
if ( is_post_type_archive( 'tribe_events' ) && tribe_is_month()) {
$classes[] = 'events-gridview';
return $classes;
} else {
$classes[] = '';
return $classes;
}
}
add_filter( 'body_class', 'tribe_add_gridview_class', 999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment