I use nextgen gallery in a multisite. How can I disable all scripts and styles?
These thing are loaded in the code of my site:
<link rel='stylesheet' id='NextGEN-css' href='http://mysite.com/wp-content/plugins/nextgen-gallery/css/nggallery.css?ver=1.0.0' type='text/css' media='screen' />
<script type='text/javascript' src='http://mysite.com/wp-content/plugins/nextgen-gallery/js/jquery.cycle.all.min.js?ver=2.9995'></script>
<script type='text/javascript' src='http://mysite.com/wp-content/plugins/nextgen-gallery/js/ngg.slideshow.min.js?ver=1.06'></script>
<!-- <meta name="NextGEN" version="1.9.7" /> -->
This takes care of NextGEN’s slideshow and CSS, as well as the Shutter script and CSS that it also enqueues by default.
But: are you sure you want to do that? Maybe you can be a little selective, and only do that on selected pages / posts / categories.
Edit: to remove the commented-out meta tag too, add this filter:
Another buyer has created this snippet https://gist.github.com/Davidlab/5134645
The proper way is to
define('NGG_SKIP_LOAD_SCRIPTS', true);
Note that this’ll be included in the next version of my plugin.
In new version of nextGen if you want clean album css you just need