My Blog

contains PHP and other web related content. (Sometimes there are some off topic things - don't freak out!)

How I fixed the Javascript error with wp-codebox

I’ve been using the wp-codebox plugin for a while… and an upgrade came today!

Well, I applied the upgrade – and now every page that has a code box on it was causing my JS to crash. The first thing I did was disable the inclusion of the jquery.js file in the plugin by editing the main.php file’s codebox_header() function. Then, I deleted the jquery.js file from the /js folder in the plugin. Finally, I edited js/codebox.js to remove the reference to the old jquery’s noConflict() method. I removed the $jcodebox variable and replaced it with the $ only. Now, all is well.

Tags: ,

Leave a Reply

  • twitter loader

Follow me on twitter: @aaronsaray

The views on this website are my own and do not reflect the opinions of my employer or clients.
Creative Commons License Home | Open Source | Book | Music | Art | Bio | Resume | Contact
My Baby