Created
January 9, 2016 15:40
-
-
Save jesseeproductions/0a4af5a83500f82af6ac to your computer and use it in GitHub Desktop.
The Events Calendar - Fix Mobile Month View in Genesis 2.2.6
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
/* | |
* The Events Calendar - Fix Mobile Month View in Genesis 2.2.6 | |
* @version 1.0 | |
*/ | |
add_filter( 'post_class', 'tribe_genesis_event_class_hentry' ); | |
function tribe_genesis_event_class_hentry( $classes ) { | |
$event_class = 'hentry'; | |
if ( tribe_is_event_query() ) { | |
$classes[] = esc_attr( sanitize_html_class( $event_class ) ); | |
} | |
return $classes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment