Skip to content

Instantly share code, notes, and snippets.

@rosshanney
Created October 9, 2012 18:41
Show Gist options
  • Save rosshanney/3860620 to your computer and use it in GitHub Desktop.
Save rosshanney/3860620 to your computer and use it in GitHub Desktop.
GCE Asynchronous Content Loading Fix
<?php
/*
Plugin name: GCE Asynchronous Content Loading Fix
*/
function gce_ajax_fix() {
?>
<script type="text/javascript">
jQuery(document).ready(function(){
if(typeof(gce_tooltips) === 'function'){
jQuery('html').ajaxSuccess(function() {
gce_tooltips('.gce-has-events');
});
}
});
</script>
<?php
}
add_action( 'wp_footer', 'gce_ajax_fix' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment