JS breaking Admin
-
Just need to know a concrete way to get all of this not needed JS from running while in admin. When this plugin is activated everything from CCS problems to cant even open the admin ‘screen options’ or ‘help’ panels!
I have already tried NGG_SKIP_LOAD_SCRIPTS constant.. doesn’t work
I have already tried:
https://gist.github.com/Davidlab/5134645/*
* 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);
}
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘JS breaking Admin’ is closed to new replies.