Customised Date and Time format display in List Widget

Home Forums Calendar Products Events Calendar PRO Customised Date and Time format display in List Widget

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1025381
    Nickolas
    Participant

    Greetings

    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
    #1025427
    Cliff
    Member

    Hi 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.

    #1025428
    Nickolas
    Participant

    This reply is private.

    #1025506
    Cliff
    Member

    I 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:

    Screenshot 2015-11-13 17.09.36

    If changing those doesn’t help, you may be able to leverage one of these filters to accomplish your customization:

    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.

    #1026373
    Nickolas
    Participant

    You 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!

    • This reply was modified 10 years, 5 months ago by Nickolas. Reason: Added clarification
    • This reply was modified 10 years, 5 months ago by Nickolas. Reason: Typos
    #1026716
    Cliff
    Member

    I’m glad you got it figured out for your needs. Thanks for letting me know.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Customised Date and Time format display in List Widget’ is closed to new replies.