Add Modern Tribe Event Categories as CSS classes in Event Posts
Event Categories are not added as CSS classes to individual Event Posts in the 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’ ); // Ref – 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…
Read MoreChanging the Modern Tribe Events Date Format
This is some code borrowed and extended on to change the Modern Tribes Event plugins date output format to make it a bit easier on the eye than the default output. View the code on Gist. It is a shortcode [all_the_single_dates] that outputs the dates like so …. 09 – 14 September 2018 28 October…
Read More