Created
July 28, 2014 20:42
-
-
Save caseydriscoll/671e23ca99cc61b98e82 to your computer and use it in GitHub Desktop.
Tribe: Add class to list month header
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
// 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