Created
March 11, 2013 21:27
-
-
Save rosshanney/5137916 to your computer and use it in GitHub Desktop.
Close GCE tooltips on click / tap
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 | |
/* | |
Plugin name: Close GCE tooltips on click / tap | |
*/ | |
function gce_close_tooltips_on_click() { | |
if ( defined( 'GCE_VERSION' ) ) { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
jQuery('body').on('click', '.gce-event-info', function(){ | |
jQuery('.qtip').hide(); | |
}); | |
}); | |
</script> | |
<?php | |
} | |
} | |
add_action( 'wp_footer', 'gce_close_tooltips_on_click' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment