• Resolved SottoVoce

    (@sottovoce)


    For some reason, I can’t get the NextGEN stylesheets to stop loading in the frontend.

    Test website specs:

    ? Clean install of WordPress 5.9
    ? “Twenty Twenty-One” theme
    ? A single plugin installed: NextGEN Gallery 3.23
    ? define('NGG_SKIP_LOAD_SCRIPTS',TRUE); added to wp-config.php

    NextGEN Gallery Plugin configuration:

    Standard as it comes when installed. Only Lightbox effects set to “none” enabled.

    It is a clean install, both of WordPress and Nextgen, there is not even any galley, post or page created yet. Standard “Twenty Twenty-One” theme as it comes when installed.

    Files still being enqueued:

    /nextgen-gallery/products/photocrati_nextgen/modules/widget/static/widgets.css?ver=3.23
    /nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/static/thumbnails/nextgen_basic_thumbnails.css?ver=3.23
    /nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/static/slideshow/ngg_basic_slideshow.css?ver=3.23

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Benjamin

    (@benjaminowens)

    Hi @sottovoce

    It appears that we missed the widgets CSS when that constant was introduced; I’ll try to have that fixed in one of our upcoming releases.

    Until then you can force their removal with the following PHP; I like to create a small plugin for basic site customization tweaks and store things like this in that plugin:

    add_action('wp_enqueue_scripts', function() {
        wp_dequeue_style('nextgen_widgets_style');
        wp_dequeue_style('nextgen_basic_thumbnails_style');
        wp_dequeue_style('nextgen_basic_slideshow_style');
    });

    Sorry for the inconvenience!

    Thread Starter SottoVoce

    (@sottovoce)

    Perfect, all solved @benjaminowens. Thank you very much for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t disable CSS in frontend’ is closed to new replies.