Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Created November 18, 2015 18:58
Show Gist options
  • Save ericakfranz/9f56cf34139a4f6e2fdd to your computer and use it in GitHub Desktop.
Save ericakfranz/9f56cf34139a4f6e2fdd to your computer and use it in GitHub Desktop.
OptinMonster loads jQuery v1.11.3 by default, use this to remove this function. Useful if the site is already loading a different version of jQuery and the page source is outputting multiple copies. One version for WP users, the other as plain JS.
<script type="text/javascript">
var om_load_jquery = false;
</script>
add_action( 'wp_footer', 'tgm_om_attach_pre' );
function tgm_om_attach_pre() {
?>
<script type="text/javascript">
var om_load_jquery = false;
</script>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment