Posted: October 22, 2013 at 11:04 am
|
Currently on latest WP 3.6.1 release. I happen to noticed my home page slider and drop menus stop working. After disabling all plugins and turning on 1 at a time, we discovered the problem is with EE. How do we fix this please? |
|
Usually, this is caused by the theme not loading jQuery correctly or not using the no-conflict wrapper. (http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrappers) When EE then uses jQuery in the WP prescibed manner, it then creates a javascript error causing the JS slider or dropdowns to not work. |
|
How can I verify the use of no-conflict wrapper?And how would one fix this? |
If you use a tool like FireBug and view the page you’ll JavaScript errors on the page that will typically output something like:
The link that Sidney posted has code examples that show how the scripts in the theme and plugins should be written. In a nutshell the difference is subtle, but it can make a big difference. *Correct* jQuery(document).ready(function($){ $(#somefunction) ... }); *Incorrect* $(document).ready(function(){ $(#somefunction) ... }); Here is another guide that explains this a bit more in detail: http://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/ More resources here: http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Resources If you post a link to the page where this is happening we can investigate further and if there are scripts that need no-conflict wrappers we’ll let you know which ones they are. |
|
|
Please can you run a check on this home page. The New Year pic should slide to show 2 more pics and the menu buttons at the top should drop down once you place mouse cursor on each button. |
Hi David, It turns out that your theme is in real need of updating. It’s running a version of the jQuery library that is almost 4 years old (jQuery 1.4.2). There are functions and methods that WordPress and Event Espresso use (like the .on() method) that aren’t available in the older versions of jQuery. The theme really should just use the version of jQuery that is included with WordPress (which is ~ version 1.ten now). Does the theme author have an update for this theme? |
|
|
The author does not have any updates, however is there anything you guys can do to make this work with old code? |
Hi David, Event Espresso’s scripts depend on the version of jQuery that WP ships with. What might work is to remove the theme’s version of jQuery and make the theme load up the version of the jQuery library that WordPress ships with. Then the scripts in the theme that depend on jQuery may need to be updated to be compatible with the current jQuery library if they have any deprecated functions. Here is a list of deprecated functions from the jQuery library. If your theme’s scripts are using any of these they will also need to be updated to their newer versions: |
|
Update: I checked into this theme a bit to see if the author is aware of the issue and they are: http://themeforest.net/item/new-business/discussion/166394 They outline how to fix this issue in the above post. My two cents: What would be really nice is if they could update their theme instead of putting the burden on their customers. |
|
|
what page shows the procedure to fix? there is a lot of comments in that topic. I sent there support questions on this problem too. I am trying to go the easy route and not break anymore things on the site. |
This one: http://themeforest.net/item/new-business/discussion/166394#comment_5036210 |
|
|
Thanks. Now its working. Another question. In regards to group registration, Do you need to right click in order to access fields for entering more people? If so how can I get around this when I have blog protector plugin enabled? |
Hi David, In the future please close resolved topics and start a new topic if you have additional questions. The additional attendee toggle opens with a left click. There may be another conflict with your theme or another plugin if that’s not happening. Can you post a link to the registration page so we can investigate? |
|
|
Sorry about that. Will open new topic for future questions. Yes, it was broken because of the theme query. Once I fix the function.php and try again with left click it works. thanks we can close out this ticket. regards |
The support post ‘EE plugin when enabled causes my slider and drop menus to stop working.’ 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.