Support

Home Forums Event Espresso Premium Event Espresso conflict with site widgets

Event Espresso conflict with site widgets

Posted: January 17, 2014 at 4:39 pm

Viewing 10 reply threads


derekk2110

January 17, 2014 at 4:39 pm

Hi EE

The site I am building (see http://www.nswspcconference2014.org.au ) is using an event template called “Fudge”.

(Ignore the eventbrite component at the bottom, that is what I am TRYING to get away from using so we can use Event Espresso)

When I load the EE plugin (the base plugin, everything else turned off) the widgets on the site lose functions. The countdown timer stops (not important, i can live without that) but the spekaers widget stops showing the speakers and instead just shows the “more” button . . so it’s perhaps impacted that Datapull

Is there any recommendations to help stop this? As mentioned, I am really really trying to get out of using Eventbrite and am so so close to getting everything I need from EE, but have these things that are causing me some grief 🙁


Josh

  • Support Staff

January 17, 2014 at 5:41 pm

Hi there,

It turns out all the errors are the same:

Uncaught TypeError: Property '$' of object [object Object] is not a function script.js:6
Uncaught TypeError: Property '$' of object [object Object] is not a function home.js:1
Uncaught TypeError: Property '$' of object [object Object] is not a function countdown.js?ver=3.8:8

These are from not writing jQuery to work with no-conflict mode. Event Espresso and WordPress use jQuery no-conflict mode, and your theme isn’t written to be compatible with jQuery no-conflict mode. WordPress only uses the no-conflict scripts in the admin, so that’s why you only see the issue when Event Espresso is active.

It’s a fairly straightforward fix that’s outlined here:

https://eventespresso.com/2012/08/using-jquery-in-safe-mode/

Basically it involves wrapping the scripts that are throwing errors with jQuery no-conflict wrappers. This allows for using the $ without the conflict. The other way to fix this is wherever you see a $ in the theme’s JavaScript, you change it to say jQuery. So for example, line 6 of fudge/js/script.js can be changed from

$(document).on('click', '.btn-session', function(e){

to

jQuery(document).on('click', '.btn-session', function(e){


derekk2110

January 18, 2014 at 11:59 pm

Oh gods that sounds traumatic. Im not a code person so this is bit gobblygook to me. I wish (bet you hear this all the time) that there was a simple one page even theme that worked seamlessly with eventbrite.

Anyway, I will try hacking away at the code see how I go. Thank you!


derekk2110

January 19, 2014 at 12:29 am

Hi Josh

A while ago EE was working on a theme that would be compatible as a single event theme for EE – (remember this post https://eventespresso.com/topic/recommendations-for-the-best-conference-theme-single-event/)

wondering if this got much further as you can tell, Im back again in the event theme pain. This fudge theme “looks” great but is clunky as all hell on the back end and causes issues with EE.

Oh . . I will open a new topic with this – sorry


Dean

January 19, 2014 at 11:10 pm

Hi Derek,

The Event Espresso Theme is still a work in progress, most new features, and projects are on hold while we get EE4 finished, polished and released.


Josh

  • Support Staff

January 20, 2014 at 8:45 am

Derek,

It’s not as traumatic as it looks, these are fairly straightforward code changes that involve tweaking the theme’s JavaScript files. The code will work the same, the difference will be the $ shorthand will be able to work when other WP plugins that use jQuery in safe mode are installed.

Event Espresso support staff could likely wrangle this theme into shape within 1/2 an hour if you’d like to purchase a priority support token and get the theme to be compatible with the WordPress no-conflict mode.


derekk2110

January 20, 2014 at 2:17 pm

Hi Josh. I went out and set up a Woo Commerce cart for the ticket which got the ticket job done . . but I dont think it’s ideal as I just know that the customer is going to ask for workshop stream registration management next.

the theme is a great looking theme, shithouse code though. I’ve basically just dropped a woo cart plugin into the theme’s eventbritebox to get around eventbrite {(yuck).

Ideally I could do this in EE and all will be over.

I will raise the ticket now, we must go live this weekend so Im keen on anything


derekk2110

January 20, 2014 at 2:22 pm

Hi Josh

Ticket has been paid for. Any chance you can remove the “pay online” button on the invoice template whilst you are there?

You’ll need my site login details etc. How do I get these to you outside the public forum? I am on email derekpknox@gmail.com


Josh

  • Support Staff

January 20, 2014 at 2:53 pm

Hi Derek,

If you go to your account page you’ll see a link that takes you to a redeem your token form where you fill out login details.


derekk2110

January 20, 2014 at 10:16 pm

Done, token redeem thing has been done. Please be gentle. The Woo commerce tool is just holding together what I need right now but if I can do this in EE and it is easy life will be better.


Josh

  • Support Staff

January 21, 2014 at 11:27 am

I sent you an email and attached the modified theme. If you intend on deactivating the WooCommerce theme later on, please note that there is at least one WooCommerce dependant code snippet in the theme’s functions.php file that should be removed to avoid throwing fatal errors.

Viewing 10 reply threads

The support post ‘Event Espresso conflict with site widgets’ 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