Aaron Saray

open source programmer,
web developer

entrepreneur, author
and musician

My Blog

contains PHP, Web and business/entrepreneurial related content. Please join in the conversation!

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.

This entry was posted in javascript, wordpress and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>