Skip to content

Instantly share code, notes, and snippets.

@caseydriscoll
Created July 28, 2014 20:42
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 caseydriscoll/671e23ca99cc61b98e82 to your computer and use it in GitHub Desktop.
Save caseydriscoll/671e23ca99cc61b98e82 to your computer and use it in GitHub Desktop.
Tribe: Add class to list month header
// add anywhere in functions.php theme file
add_filter( 'tribe_events_list_the_date_headers', 'add_class_to_month_header' );
function add_class_to_month_header( $content ) {
$my_class = 'this-is-my-class';
$content = str_replace( 'tribe-events-list-separator-month', 'tribe-events-list-separator-month ' . $my_class, $content );
return $content;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment