I used the Custom Category Post Order plugin in my Wordpress site. But this plugin load 4 times jquery ui code in. This jQuery ui code generate errors in my own javascript code. Is it posible to load only the jquery ui script in the admin page in wordpress. Of is that not possible.?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
It's very possible, and a good plugin writer should know better. The solution is not a simple one, and unless you're comfortable editing the plugin, you'll probably want to contact the author of the offending code. Scribu has a great little tutorial on the proper ways to load javascript located here: http://scribu.net/wordpress/optimal-script-loading.html And Justin Tadlock does a good admin specific writeup here: http://justintadlock.com/archives/2011/07/12/how-to-load-javascript-in-the-wordpress-admin |
|||
|
|
add_action( 'admin_enqueue_scripts', 'my_function_to_enqueue_scripts' );– Tom Auger Aug 15 '12 at 15:39