Posted: September 28, 2013 at 1:54 pm
|
Hi there, I’m using themeforest coworker theme and after installing Event Espresso, I guess there is some kind of Javascript conflict and it brakes functionality. Please, don’t try to visit diadima.gr, because you will visit our old website. You will be able to take a look at the new, WordPress website only if you add this line to your hosts file: 5.153.20.105 http://www.diadima.gr [this editor keeps adding “http://” before http://www.diadima.gr. Anyway it shouldn’t be there] There (www.diadima.gr), on the homepage, all the way to the bottom of the page, you can see that the client scroller and the testimonials scroller are not working anymore. Any ideas? Thank you in advance,
|
|
Hello Yannis, Do you have a publicly available version of the site? Or can you provide a screenshot of the console log to show us the error? What version of WordPress are you using? What version of jQuery are you using? |
|
Hi Dean, Thank you in advance, |
September 30, 2013 at 12:04 pm Hi Yannis, The problem is stemming from the theme not properly wrapping some of its functions in jQuery no-conflict wrappers. It looks like some of them are and some are not. If you look in the theme’s custom.js file, there are a few functions that need addressing. The first one is the tab_widget function that starts on line 26 and later starting on line 573. They are all using the $ shorthand for jQuery and it’s throwing this error:
This is a very common issue that comes up because Event Espresso (like many other WP plugins) is written to work in jQuery no-conflict mode. While there is more than one way to fix this, the solution I like to use is outlined in this stackexchange thread: http://stackoverflow.com/a/5382397 Another way to fix it is replace $ with jQuery within functions that are throwing the errors. |
|
|
Hey Josh, Cheers, |
Yes, and you can share with them this link as well: http://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/ |
|
The support post ‘Activating Event Espresso plugin, brakes theme.’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.