Support

Home Forums Event Espresso Premium Displaying time on event page with registration form turned off

Displaying time on event page with registration form turned off

Posted: February 21, 2013 at 9:28 am

Viewing 2 reply threads


cerulean

February 21, 2013 at 9:28 am

I came across a thread here somewhere which related to time not showing up on events that have the registration form turned off (which is too bad, that would be very useful to have). The suggestion was to include the time in the body of the event.

Since I will have to manually add the time and date in the body, but the date reappears standalone at the bottom with the iCal import, can that date area be modified? Instead of repeating “Date: … “, I’d like to change it to “Add to calendar: …” I looked at the registration_page and registration_page_display templates and didn’t find code to change, so not sure where it is. Thanks


Jonathan Wilson

February 21, 2013 at 1:27 pm

Hello, In registration_page_display.php, you will need to remove lines 123-144. To be safe, just make sure you have a backup before removing the code. It looks like this:

< p class="start_date"> <?php if ($end_date !== $start_date) { ?> 

<span class="span_event_date_label"> <?php _e('Start Date: ', 'event_espresso'); ?> </span> 

<?php } else { ?> 

<span class="span_event_date_label"> <?php _e('Date: ', 'event_espresso'); ?> </span> 

<?php } ?> 

<span class="span_event_date_value"> <?php echo event_date_display($start_date, get_option('date_format')); ?> </span> 

<?php if ($end_date !== $start_date) : ?> <br/> 

<span class="span_event_date_label"> <?php _e('End Date: ', 'event_espresso'); ?> </span> 

<span class="span_event_date_value"> <?php echo event_date_display($end_date, get_option('date_format')); ?> </span> 

<?php endif; ?>

Then you will need to add this code:

<?php _e('Add to calendar:'); ?>

Above this code:

<?php echo apply_filters('filter_hook_espresso_display_ical', $all_meta); ?>


Jonathan Wilson

February 21, 2013 at 1:32 pm

Make sure you copy the registration_page_display.php and registration_page.php files to wp-content/uploads/espresso/templates.

Viewing 2 reply threads

The support post ‘Displaying time on event page with registration form turned off’ 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