Created
August 29, 2016 20:57
-
-
Save GeoffEW/4a134f9fb8052577814092c4497e2fa0 to your computer and use it in GitHub Desktop.
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
<?php | |
/* | |
* The Events Calendar Pro - Hide Mini Calendar Event List Until Calendar Date is Clicked | |
* TEC PRO @3.11.1 | |
*/ | |
add_action( 'wp_footer', 'tribe_hide_mini_calendar_list_until_clicked', 50 ); | |
function tribe_hide_mini_calendar_list_until_clicked() { | |
?> | |
<script> | |
var $ = jQuery.noConflict(); | |
jQuery(function($) { | |
$( ".tribe-mini-calendar-list-wrapper" ).fadeOut(); | |
$( ".tribe-mini-calendar-grid-wrapper" ).on( "click", function() { | |
$( ".tribe-mini-calendar-list-wrapper" ).fadeIn(); | |
}); | |
}); | |
</script> | |
<?php | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment