The Events Calendar: Remove the tribe-event-featured
class from Mini Calendar widgets.
<?php
/**
* The Events Calendar: Remove the `tribe-event-featured` class from Mini Calendar widgets.
*
* @link https://gist.github.com/cliffordp/822336f011df7d8106a1e13f6f7d7226 This snippet.
*/
function cliff_tribe_remove_featured_class_from_mini_widget() {
wp_enqueue_script( 'jquery' );
?>
<script>
jQuery( document ).ready( function () {
jQuery( 'section.tribe_mini_calendar_widget .tribe-events-loop .tribe-event-featured' ).removeClass( 'tribe-event-featured' );
} );
</script>
<?php
}
add_action( 'wp_footer', 'cliff_tribe_remove_featured_class_from_mini_widget' );