Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using Optima Express theme (real estate inventory) plugin for my wordpress website. And it is working perfect in admin are.
But as i started to use it in front end it is started to conflict with Jquery of current active theme.
It does work with Twenty-Eleven, Twenty-Twelve but not the "Striking" and "Karma"themes I wish to use with this plugin.

What should i do ? Should i go to everyplace in code and write JquerynoConflict OR any better solution for this ?

All suggestion will be welcome.

share|improve this question
    
This question would be much more useful if it were generalized to include Theme-Plugin script compatibility in general. As it is, it is bordering on being too localized. –  Chip Bennett Mar 8 '12 at 20:34
add comment

1 Answer 1

up vote 2 down vote accepted

From the looks of it, the IDX plugin is coded properly with noconflict, but there is some inline JS in the themes that is not. Wrapping those functions in

(function($) {
   // your functions here
})(jQuery);

will take care of the problem. All JS in WordPress should be run in noconflict mode, so yes you'll need to go through the theme code and make sure it's functioning properly.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.