Support

Home Forums Event Espresso Premium Event Espresso breaks my Custom Theme JS

Event Espresso breaks my Custom Theme JS

Posted: October 1, 2014 at 9:12 am

Viewing 5 reply threads


BDIS Admin

October 1, 2014 at 9:12 am

I was wondering if someone could help me fix the problem Im having with Event Espresso breaking my custom theme’s js files.

I’ve been researching online, but cant seem to find the fix.

Currently it shuts down:

My Footer show/hide functionality

Mobile Menus

Scroll to sections

http://www.diversityinscience.org/


Tony

  • Support Staff

October 1, 2014 at 10:25 am

Hi,

Can you activate Event Espresso so we can see the error thrown please?

Most likley the custom JS is not using jQuery.noConflict() which you can read about here:

http://www.w3schools.com/jquery/jquery_noconflict.asp

and also here:

http://api.jquery.com/jquery.noconflict/


BDIS Admin

October 2, 2014 at 10:52 am

Tony,

Good morning.

I have activated Event Espresso.

Thank you for providing the jQuery.noConflict() documentation.

I will be brushing up on that, but would appreciate your thoughts on whats going on now that the plugin is activated.

Im sure it just is the lack of jQuery.noConflict(), but would like to make sure.

Thanks again.


Tony

  • Support Staff

October 2, 2014 at 11:02 am

Looking at the page it appears that is the cause – http://take.ms/ZSwLQ

You’ll want to change instances of:

$(document).ready(function(){

to

jQuery(document).ready(function($){

There may be other errors after this, but we won’t know until that is fixed. The problem with JS is that once an error is thrown, no other JS on the page will run after that.


BDIS Admin

October 2, 2014 at 2:12 pm

Tony,

Thanks. That has fixed the error.

I appreciate your time and effort in finding this and providing me with feedback.


Tony

  • Support Staff

October 2, 2014 at 2:59 pm

No problem at all, I’m glad it was a simple fix 🙂

I’ll mark this thread resolved, if you have any further problems/question just open up another.

Viewing 5 reply threads

The support post ‘Event Espresso breaks my Custom Theme JS’ 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.

Event Espresso