Home › Forums › Calendar Products › Events Calendar PRO › Customised Date and Time format display in List Widget
- This topic has 5 replies, 2 voices, and was last updated 10 years, 5 months ago by
Cliff.
-
AuthorPosts
-
November 13, 2015 at 8:59 am #1025381
Nickolas
ParticipantGreetings
I would like to understand how I can remove the “Min” from the time of event inside the list-widget.php. Basically, only showing : “Date @ 21h” and nothing after…
Do I have to write a custom action hook for “tribe_events_list_widget_after_the_event_title”?
Thanks!
-
This topic was modified 10 years, 5 months ago by
Nickolas. Reason: Clarification of need
November 13, 2015 at 11:27 am #1025427Cliff
MemberHi Nickolas.
I didn’t see “Min” on my test site with Twenty Fifteen theme, and I didn’t find it in the List Widget file at /wp-content/plugins/events-calendar-pro/src/views/pro/widgets/list-widget.php
Could you please provide me a link to your site and a screenshot of where you’re seeing it?
Thanks.
November 13, 2015 at 11:29 am #1025428Nickolas
ParticipantThis reply is private.
November 13, 2015 at 3:11 pm #1025506Cliff
MemberI have determined you’re using the List Widget from the free/core The Events Calendar plugin, which is fine. FYI: the PRO plugin, when activated, replaces that widget with the same thing but with more options, if you’re interested.
So /wp-content/plugins/the-events-calendar/src/views/widgets/list-widget.php is the file generating your widget output. tribe_events_event_schedule_details() is generating the duration you’re seeing on screen.
The easiest way to manipulate how that duration is displayed might be to edit your General settings date/time formats:

If changing those doesn’t help, you may be able to leverage one of these filters to accomplish your customization:
- tribe_events_event_schedule_details_formatting
- tribe_events_event_schedule_details
Search the /wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php file for ‘function tribe_events_event_schedule_details’ for further research.
I hope this points you in the right direction to accomplish what you’re wanting.
November 16, 2015 at 7:16 am #1026373Nickolas
ParticipantYou are right, changing those “General WordPress Settings” did change the output format of the date/time.
I was also able to change the date-time seperator ” @ ” for a ” à ” inside the Display Preferences of the plugin.
Thanks for your help!
PS: Yes, I’m aware of the Pro-Version more complete capability, I’m using it on other projects. But I wanted to test out the free version first and see if it was enough for the client’s need. Thanks!
November 16, 2015 at 10:33 pm #1026716Cliff
MemberI’m glad you got it figured out for your needs. Thanks for letting me know.
-
This topic was modified 10 years, 5 months ago by
-
AuthorPosts
- The topic ‘Customised Date and Time format display in List Widget’ is closed to new replies.
