Viewing 1 replies (of 1 total)
  • Plugin Author Brian Hogg

    (@brianhogg)

    Hey narrowback,

    You have a couple options: either use CSS like overflow:hidden; or another method to keep it on one line, or else filter out the end date. The easiest way I see is to add something like the following to your theme or a functionality plugin to strip off everything after the separator (ie. after the – dash):

    function ecs_remove_end_date( $date ) {
    	if ( strpos( $date, tribe_get_option( 'timeRangeSeparator', ' - ' ) ) !== FALSE ) {
    		$date = substr( $date, 0, strpos( $date, tribe_get_option( 'timeRangeSeparator', ' - ' ) ) );
    	}
    	return $date;
    }
    add_filter( 'ecs_event_list_details', 'ecs_remove_end_date' );
Viewing 1 replies (of 1 total)
  • The topic ‘Duration Time’ is closed to new replies.