Skip to content

Instantly share code, notes, and snippets.

@Davidlab
Created March 11, 2013 14:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Davidlab/5134645 to your computer and use it in GitHub Desktop.
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.
/*
* 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