Created
November 18, 2015 18:58
-
-
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.
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
<script type="text/javascript"> | |
var om_load_jquery = false; | |
</script> |
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
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