Support

Home Forums Event Espresso Premium Address block on registration page question

Address block on registration page question

Posted: December 3, 2013 at 7:26 am

Viewing 4 reply threads


B D

December 3, 2013 at 7:26 am

In the address block on the registration page, I would like to:

1. Hide the name of the venue (I set my venues via the venue manager, so in certain cases the name of the venue is the same as the name of the city, of which I wish to hide the first occurence)

2. Have the postal code before the city name, on the same line. (Currently it shows up below the city name)

Thank you in advance.


Tony

  • Support Staff

December 3, 2013 at 8:19 am

Hi,

For both of those points you’ll need to modify the templates.

Copy event-espresso/templates/registration_page.php and registration_page_display.php to wp-content/uploads/espresso/templates/

Then modify the files in the new location.

1) registration_page_display.php – line 189.

<?php echo stripslashes_deep($venue_title); ?><br />

If you wish to remove the venue title from all events either comment or remove that line, if you want to be able to do this for a select few you could wrap it within a span and target it with css.

2) registration_page.php – line 146

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

You can alter the order there. It is output within registration_page_display.php on line 190.


B D

December 3, 2013 at 8:53 am

Thank you, it works fine.

I would however like to place the zip on the same line as the city, that is, first the zip then the city. How to do this?


Tony

  • Support Staff

December 3, 2013 at 9:03 am

The forum editor removes the br tags. If you look at the code mentioned above. registration_page.php – line 146.

You’ll see br tags within the code, just remove the one between zip and city.


B D

December 3, 2013 at 9:08 am

Thank you. Problem solved.

Viewing 4 reply threads

The support post ‘Address block on registration page question’ 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