Hi guys,
I’d like to modify the output of the Upcoming Events element. Instead of showing the metadata beneath the events title, it should be before the title.
Not only that but also only show the date and not the time. I read this thread but I don’t know if this is the right way to achieve this.
Thanks in advance!
Best regards,
Steven
Hey steviger,
Thank you for the inquiry.
You can use this css code to move the meta info beside the title.
#top .av-upcoming-event-title {
width: 80%;
float: right;
}
#top .av-upcoming-event-meta {
float: left;
width: 20%;
}
Best regards,
Ismael
Hi Ismael,
Thanks for your feedback. It works like a charm! Is it also possible to only display the date and not the time?
Best regards,
Steven
Hi,
Please provide a link to the site/page in question so we can look into that further.
Best regards,
Jordan Shannon
Hi,
Please see PC.
Best regards,
Steven
Hi,
That should be possible. Please add these filters in the functions.php file to disable the time in the event list.
// disables the time for event list
function ava_remove_time_list_view( $settings ) {
$settings["time"] = false;
return $settings;
}
add_filter( "tribe_events_event_schedule_details_formatting", "ava_remove_time_list_view" );
function ava_remove_end_date ( $settings ) {
$settings["show_end_time"] = false;
return $settings;
}
add_filter( 'tribe_events_event_schedule_details_formatting', 'ava_remove_end_date' );
Best regards,
Ismael
Hi Ismael,
Thanks a lot!
Best regards,
Steven