开发者

Wordpress Javascript / jQuery conflicts

I'm really stuck on a problem. I have already searched Google and even asked on twitter but no avail. My problem is with Wordpress, when trying to use thickbox and jQuery slider on the same page my slider becomes static.

(Without the jQuery script) If I remove the jQuery script for {Nivo slider} then my lightbox works.

(Without thickbox javascript) When I don't use the thickbox javascript my slider works.

(The Problem) When using both scripts thickbox overwrites the slider causing it to sho开发者_StackOverflow中文版w the images below one another (not hidden) and the slider stops working all together.

However I have tested using the two scripts on Drupal on my local host and they work fine together however on Wordpress it does not work.


Take a look at wp_enqueue_script which talks about using WordPress's version of jQuery and also make sure that YOUR jQuery is being run in noConflict mode.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜