Support

Home Forums Event Espresso Premium Event registration page

Event registration page

Posted: July 27, 2016 at 1:02 pm

Viewing 4 reply threads


Maccabee Levine

July 27, 2016 at 1:02 pm

Is there a way to have the city state and zip on one line on the event registration page?

See screenshot: http://www.esu.edu/images/wordpress/event-test8.jpg


Tony

  • Support Staff

July 28, 2016 at 7:21 am

Yes, but you will need to alter the templates used for the registration page to do it.

If you go to /event-espresso/templates/

You’ll find registration_page.php and registration_page_display.php

registration_page.php basically sets up all of the variables for the event and then registration_page_dipslay.php uses those variables to output the details, so you need to copy BOTH of those templates to:

/wp-content/uploads/espresso/templates/

Then within registration_page.php you’ll find:

$location = (!empty($event_address) ? $event_address : '') . (!empty($event_address2) ? '
' . $event_address2 : '') . (!empty($event_city) ? '
' . $event_city : '') . (!empty($event_state) ? ', ' . $event_state : '') . (!empty($event_zip) ? '
' . $event_zip : '') . (!empty($event_country) ? '
' . $event_country : '');

Remove the br tags from that code and use the commas the way you did in your other thread where needed.


Maccabee Levine

July 28, 2016 at 9:00 am

I am curious, can I add the specific code to the custom_functions.php page or are you suggesting replicating the 2 files under /wp-content/uploads/espresso/templates/ as being the better option?


Tony

  • Support Staff

July 28, 2016 at 9:08 am

You can add the function to custom_functions.php if you prefer however using the template files is easier to manage in the long run if you need to add additional details within the templates at any point, you would then need the above anyway (and would need to remember the changes in custom_templates.php)


Maccabee Levine

July 28, 2016 at 9:27 am

OK,thanks

Viewing 4 reply threads

The support post ‘Event registration page’ 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