Guides and FAQ

Wikis > NextCellent Plugin > Guides and FAQ

On this page, you’ll find an overview of help guides and a bunch of useful questions (and answers) from the forum.

Guides

FAQ

Before posting a help message on the forum, check the guides above, the actual FAQ and the questions below.

Prevent NextCellent styles and scripts from loading.

Note: doing this will prevent NextCellent from working correctly. Use at your own risk.

There are two methods to achieve this. The first one disables all styles and scripts:

  1. Disable the style by going to Galleries->Style, and deselect the ‘Activate and use style sheet’ option.
  2. Add this code to your functions.php file (from your theme) to disable the scripts:
    define('NGG_SKIP_LOAD_SCRIPTS', true);

The second method allows you to select which styles and scripts to prevent from loading. Add the following code to your theme’s functions.php file:

add_action( 'wp_print_scripts', 'de_script', 100 );

function de_script() {
  wp_dequeue_script ( 'jquery-cycle' );
  wp_deregister_script( 'jquery-cycle' );
  wp_dequeue_script ( 'ngg-slideshow' );
  wp_deregister_script( 'ngg-slideshow' );
}

add_action ('wp_head','de_style',1);

function de_style() {
  wp_dequeue_style('NextGEN');
  wp_deregister_style('NextGEN');
}

 

The original question can be found here.