[Plugin: jQuery Colorbox] Deregister and consolidate scripts
-
Hey techotronic, first off, thanks for this awesome plugin.
I have one request which you might be able to help me with. I would really like to fold the included jquery/js/css into my own theme files so I can minify the whole thing to eliminate unnecessary calls in my header.
Unfortunately your colorbox plugin seems to be immune to my usual methods for deregistering a plugin script. Here’s what I’ve been trying.
add_action( 'wp_print_scripts', 'remove_colorbox_scripts', 100 ); function remove_colorbox_scripts() { wp_deregister_script( ' jquery ' ); wp_deregister_script( ' colorbox ' ); wp_deregister_script( ' colorbox-wrapper ' ); }
I’ve tried some variations of this approach, but can’t seem to get it to take. Any suggestions for correcting my method?
Thanks again for the great plugin.
https://www.ads-software.com/extend/plugins/jquery-colorbox/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: jQuery Colorbox] Deregister and consolidate scripts’ is closed to new replies.