Modifying core files
-
I’m trying to remove the time and date formatting from the Day Event View. Currently, the view shows the time twice (once as the start time and once with the date and start – end times).
For example, it shows something like this:
10:00 am
Cooking Class
August 2 @ 10:00 am – 2:00 pm
Kitchen
Find out more ?Since this is the day view, with the Date on the top of the page, what I’d like to show is this:
10:00 am
Cooking Class
Kitchen
Find out more ?So I want to remove the “August 2 @ 10:00 am – 2:00 pm” part.
The only way I’ve been able to find to remove it, is to remove the function that generates it from general.php:
} else { // defined start/end time $schedule .= tribe_get_start_date( $event, false, $format ) . ( $time ? $datetime_separator . tribe_get_start_date( $event, false, $time_format ) : '' ); $schedule .= '<span class="value-title" title="'. $microformatStartFormat .'"></span>'; $schedule .= '</span>' . ( $show_end_time ? $time_range_separator : '' ); $schedule .= '<span class="end-time dtend">'; $schedule .= ( $show_end_time ? tribe_get_end_date( $event, false, $time_format ) : '' ) . '<span class="value-title" title="'. $microformatEndFormat .'"></span>';
Is there an easier/better way to deal with removing the Date @ Start – End line? If I have to remove it, is there a way to remove it from a copy of the general.php file so my edit won’t get replaced when updating the plugin. I tried putting a copy of general.php inside of tribe-events\public\template-tags to no avail.
My goal is to have a much cleaner looking layout for the Day view. Something like this, which is a screenshot from the Day view after I’ve made all of my modifications:
- The topic ‘Modifying core files’ is closed to new replies.