Last active
May 10, 2017 06:01
-
-
Save seothemes/208820e08d4654203eeaa113338815d9 to your computer and use it in GitHub Desktop.
Turn off jmig
This file contains hidden or 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 | |
/** | |
* Only load JMIG on specific pages. | |
*/ | |
function jmig_pages() { | |
if ( ! is_page( array( 148, 150 ) ) ) { | |
remove_action( 'wp_enqueue_scripts', 'jmig_css', 99 ); | |
remove_action( 'wp_enqueue_scripts', 'jmig_js' ); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'jmig_pages', 0 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment