Support

Home Forums Event Espresso Premium Remove hyphen + space from datetime description display

Remove hyphen + space from datetime description display

Posted: February 4, 2017 at 6:49 am


Jerry

February 4, 2017 at 6:49 am

When I enter the optional datetime description for an event, it displays prefixed with a hyphen and a space. Is it possible to suppress that hyphen and space?


Josh

  • Support Staff

February 7, 2017 at 12:13 pm

Yes it’s possible. You probably have a functions file or functions plugins where you’re adding custom code to? If so, you copy the entire espresso_list_of_event_dates()
function from the /public/template_tags.php file into your custom functions file.
Then you make an edit to your copy and remove the hyphen and space from this line of code. Your finished edit of that line will look like this:
$html .= ! empty( $datetime_description ) ? $datetime_description : '';

The support post ‘Remove hyphen + space from datetime description display’ 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