Support

Home Forums Event Espresso Premium Add More Attendees button not working

Add More Attendees button not working

Posted: August 9, 2012 at 7:16 am

Viewing 4 reply threads


Christian Vento

August 9, 2012 at 7:16 am

I have seen this discussed on other parts of the forum but for some reason I can’t seem to solve this.

Firebug says I have a Jquery error, but I am not exactly sure how to resolve this.

I tried wrapping the Event-Registration short code with [raw][/raw], but nothing changed.

Here is the link to the page with the event in question:
http://staytarrantcounty.com/events/event-registration/?ee=8

Here is a portion of the Firebug error:
SyntaxError: unterminated string literal
[Break On This Error]
…div#additional_attendee_’ + attendee_num;function markup(attendee_num) {return
?ee=8 (line 473, col 198)
Thanks!
Christian


Josh

  • Support Staff

August 9, 2012 at 8:42 am

Hi Christian,

two copies of jQuery are being loaded on the page. One older copy from the theme, and one from WordPress. The theme should be modified to enqueue the version from WordPress. Here are a few references:

http://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/

http://wordpress.org/support/topic/how-do-i-enqueue-jquery-in-my-theme


Christian Vento

August 9, 2012 at 4:56 pm

Thank you Josh,

I have tried to enqueue the version from WordPress by adding [?php wp_enqueue_script(“jquery”); ?>] above the wp_head line to my header.php file .

Nothing changed, which leads me to believe I have left something out


Josh

  • Support Staff

August 10, 2012 at 4:48 pm

The theme’s included version of jQuery needs to be removed. This will typically be loaded from either header.php or the theme’s functions.php.


Christian Vento

August 10, 2012 at 6:49 pm

Ahh – thanks Josh! – that did the trick.

All I needed to do was remove the callout for the old 1.2.6 jQuery from the header.php file and everything is now working.

Thanks again for steering us thru this.

Christian

Viewing 4 reply threads

The support post ‘Add More Attendees button not 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.

Event Espresso