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.
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.
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:
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.
Support forum for Event Espresso 3 and Event Espresso 4.