JQuery 1.3.2. & Lightbox-2 conflict

stimuliToday I found out why the Lightbox-2 plugin didn’t work on the straathofmanegebodems website. I had placed a JQuery script on the faq page to have a better overview of the questions in the faq. I had used jquery-1.3.2.min.js which interfered with the JQuery 1.3.2 javascript libs used by Lightbox-2 (packaged with the plugin).

I found this out by placing the wp_head tag last in the head, which made Lightbox-2 work and the faq to fail, while when I placed it above my custom faq javascript Lightbox-2 failed but my JQuery changes worked. I guess no wonder since the one or the other javascript lib will overwrite functions in the other.

Since I have a lot on my hands right now I fixed it by only including my script when browsing the faq, in this case the Lightbox plugin won’t work since I placed the script after the wp_head() statement.

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>