• 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?

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @travis – Although I would not recommend trying to “disable NEXTgen scripts and styles” I did speak to one of our developers and they said they would try to get the modifications in so that define('NGG_SKIP_LOAD_SCRIPTS', true); is honored in the same way it was when it was introduced.

    That may not help right now, but we can expect to see this in the next (significant) release of NextGEN Gallery.

    Thanks!

    – Cais.

    Thread Starter Travis

    (@tjtaylor)

    Thanks, its conflicting with a jquery plugin I am using on the home page. I was hoping there was a way to turn off the NEXTGen scripts and styles for just the home page, but I can’t seem to find a way to do so…

    Plugin Contributor photocrati

    (@photocrati)

    @travis – Which plugin are you having an issue with? Maybe there is something there we can help with, or perhaps its author can help with … have you made note of the conflict with them as well?

    – Cais.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable NEXTgen scripts and styles’ is closed to new replies.