Remove end time from the events sidebar

Home Forums Calendar Products Events Calendar PRO Remove end time from the events sidebar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1102731
    Robin
    Participant

    Hello,

    I want to have all my events display the start time, but no end time. I managed to remove the end time from displaying on the list, month, week, etc. views by adding the following snippet to my child theme’s functions.php:

    add_filter( ‘tribe_events_event_schedule_details_formatting’, ‘change_schedule_format’ );

    function change_schedule_format( array $format ) {
    $format[‘show_end_time’] = false;
    return $format;
    }

    Now, when I click on an event to view the details, the sidebar is still displaying the start and end time. I’m using the default events template and like everything about except I want to remove the end time. How can I go about doing that?

    Thanks.

    #1103006
    Josh
    Participant

    Hey Robin,

    Thanks for reaching out to us!

    Our single event templates don’t include a sidebar by default. Would you mind providing a link to an event so I can get a better idea of what may need to be modified here?

    Thanks!

    #1103027
    Robin
    Participant
    #1103723
    Josh
    Participant

    Hey Robin,

    Thanks for providing that link!

    It looks like your theme has a customized version of our plugin here (looks great too!). Take a look within your theme files and see if you have a “tribe-events” folder there. If so, take a look for a “single-event.php” file there or a “modules” folder there that has additional files that would make up the different sections on your single event template.

    You should find a call to the event details there that you can modify the same way you were able to within the rest of the site.

    Let me know if this helps.

    Thanks!

    #1110067
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Remove end time from the events sidebar’ is closed to new replies.