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


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

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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Christian Vento 7 years, 1 month ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!