Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
How to remove end time from event? | Event Espresso - Staging Server

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


Anonymous

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 - Staging Server