How to turn off events time

Home Forums Calendar Products Events Calendar PRO How to turn off events time

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30159
    Stephen
    Participant

    I want to post an event that is over a few days, and the time changes throughout the days and during the day. I just want the event to show without any times. Is this possible?

    #30167
    Jonah
    Participant

    Hi Stephen,

    Yes, this is possible. You’ll need to reconfigure the /wp-content/plugins/the-events-calendar/views/single.php file by making a copy and placing in an ‘events’ folder in your active theme. Then you can make changes to the template… Do you want to turn off event times for all events that span multiple days or just specific events?

    Cheers,
    Jonah

    #30168
    Stephen
    Participant

    Specific events that have events for many days and different times during those days.

    #30172
    Jonah
    Participant

    Specific events will be more tricky because you’ll need a way to flag those specific events. Here’s what I would do:

    1. Install http://www.advancedcustomfields.com/ and then create a True/False field displayed in the events add/edit screen to be able to flag those events.
    2. Then, modify single.php as I instructed with the following change to lines 21-29:
    https://gist.github.com/4435986 – note, you’ll need to create the true/false field with Advanced Custom Fields and set it to display for the Events (tribe_events) post type and then update the code to reflect your custom field unless you use the same label/field name as I used (custom_event_date_display).

    So basically what this is doing is just checking for whether or not that flag has been set for specific events and displaying a different start/end date without time in the single.php template. I know it’s a bit much but hopefully you can figure it out and if you have any questions, let me know.

    Cheers,
    Jonah

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to turn off events time’ is closed to new replies.