Support

Home Forums Event Espresso Premium EE4 registration form markup

EE4 registration form markup

Posted: November 25, 2015 at 6:39 am

Viewing 3 reply threads


calex

November 25, 2015 at 6:39 am

Hi,
I want to customise the html for the attendee registration from (i.e wrap the inputs with divs).

Is there a template where I can do this?

Thanks


Josh

  • Support Staff

November 25, 2015 at 10:45 am

Hi there,

Since the registration forms are dynamically generated, there is not a template where you can add more markup. You can use jQuery’s .wrap() method to do what you want to do though.

My suggestion would be to use one of the action hooks that fire on the registration form page to call a little function that injects the JavaScript onto that page, like this:

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

If you want to wrap any textareas, selects, or other types of inputs, you can also chain the selectors in that line of jQuery code that calls the .wrap() method.


calex

November 25, 2015 at 11:05 am

This solution has come to me already, but thanks for suggesting (added and it works).

Ideally I was interested in finding a way to hook into or modify the php which generates the dynamic inputs pumped out by the attendee regform builder. Just feels cleaner doing it that way… Cheers.


Josh

  • Support Staff

November 25, 2015 at 4:10 pm

You’re welcome to add the hooks that you’d like to add, then do a pull request and one of the developers can consider adding them to a future version of Event Espresso.

Event Espresso 4 core is on github and pull requests are welcomed:

https://github.com/eventespresso/event-espresso-core/

Viewing 3 reply threads

The support post ‘EE4 registration form markup’ 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