Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.