Add Event Categories as CSS classes to Event Posts in Modern Tribe

Modern Tribe Event Category

Event Categories are not added as CSS classes to individual Event Posts in Modern Tribes Event Plugin for WordPress however you can use the body_class filter to add them in. add_filter( ‘body_class’, ‘cp_event_taxonomy_in_body_class’ ); // https://theeventscalendar.com/support/forums/topic/add-category-name-as-body_class/ // Add event categories terms to body class of event posts function cp_event_taxonomy_in_body_class( $classes ){ global $wp_query; $event_id =…

Read More