Support

Home Forums Event Espresso Premium How to remove end time from event?

How to remove end time from event?

Posted: February 21, 2014 at 5:54 am

Viewing 0 reply threads


Hans van der Woerd

February 21, 2014 at 5:54 am

Hello,

My customer only want to view the Start-time of an event on a registration page. How to edit the template for this?

Best regards,

Hans


Tony

  • Support Staff

February 21, 2014 at 7:08 am

Hi Hans,

The template file to edit is event-espresso/templates/confirmation_page_display.php

If you look at like 144-153 you’ll find

<p class="event_time">
<?php
	//This block of code is used to display the times of an event in either a dropdown or text format.
	if (isset($time_selected) && $time_selected == true) {//If the customer is coming from a page where the time was preselected.
	echo event_espresso_display_selected_time($time_id); //Optional parameters start, end, default
	} else {
		echo event_espresso_time_dropdown($event_id);
	}//End time selected
?>
</p>

I would commend out the PHP and add this to output the time:

event_date_display($all_meta['start_time'], get_option('time_format'));

To match the current layout you can use this:

<p class="event_time">
<?php
	/*
	//This block of code is used to display the times of an event in either a dropdown or text format.
	if (isset($time_selected) && $time_selected == true) {//If the customer is coming from a page where the time was preselected.
	echo event_espresso_display_selected_time($time_id); //Optional parameters start, end, default
	} else {
		echo event_espresso_time_dropdown($event_id);
	}//End time selected
	*/
	echo '<span class="span_event_time_label">' . __('Start Time:', 'event_espresso') . '</span>';
	echo ' <span class="span_event_time_value">' . event_date_display($all_meta['start_time'], get_option('time_format')) . '</span>';
?>
</p>

Hope that helps.

Viewing 0 reply threads

The support post ‘How to remove end time from event?’ 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