Disable NEXTgen scripts and styles
-
Hello, after searching for hours, I have all of the following code loaded into my functions.php from various solutions posted:
function theme_scripts() { define('NGG_SKIP_LOAD_SCRIPTS', true); } add_action( 'wp_enqueue_scripts', 'theme_scripts' ); add_action('wp_print_scripts', 'wpse_82982_removeScripts'); add_action('wp_print_styles', 'wpse_82982_removeStyles'); function wpse_82982_removeScripts() { wp_dequeue_script('ngg-slideshow'); wp_dequeue_script('shutter'); } function wpse_82982_removeStyles() { wp_dequeue_style('NextGEN'); wp_dequeue_style('shutter'); } remove_action ('wp_head','nggGalleryViewHead'); define('NGG_SKIP_LOAD_SCRIPTS', true);
However, none of them work. Does anyone know how to disable NEXTgen scripts and styles?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Disable NEXTgen scripts and styles’ is closed to new replies.