Skip to content

Instantly share code, notes, and snippets.

@rosshanney
Created August 10, 2013 19:39
Show Gist options
  • Save rosshanney/6201853 to your computer and use it in GitHub Desktop.
Save rosshanney/6201853 to your computer and use it in GitHub Desktop.
Prevent an issue caused by JavaScript loaded by the "Touch" theme, that causes month navigation links to 404
<?php
/*
Plugin name: GCE Fix Month Navigation Issue
*/
function gce_fix_month_navigation() {
?>
<script>
if (typeof jQuery != 'undefined') {
jQuery(document).ready(function(){
jQuery('.gce-change-month').off('click');
});
}
</script>
<?php
}
add_action( 'wp_head', 'gce_fix_month_navigation', 99 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment