Created
March 11, 2013 14:31
-
-
Save Davidlab/5134645 to your computer and use it in GitHub Desktop.
Nexgen hide all styles and scripts. Good to use if you are using a third party plugin along side Nexgen that handles the styles and fancy stuff. This will hide all Nexgen junk from loading.
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
/* | |
* Hide Nextgen styles and scripts | |
*/ | |
if (!is_admin()) { | |
// goodbye NextGen junk | |
define('NGG_SKIP_LOAD_SCRIPTS', true); | |
function nextgen_styles() { | |
wp_deregister_style('NextGEN'); | |
} | |
add_action('wp_print_styles', 'nextgen_styles', 100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment