Hide time only on Event List

Home Forums Calendar Products Events Calendar PRO Hide time only on Event List

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1146261
    Joan
    Participant

    I would like to hide the start and end time of events on the list view but display it in the Single Event view. I found I can easily hide the end time using CSS, but the start time is attached to the date. Is there a way to hide the start time without also hiding the date? I saw in this post:
    https://theeventscalendar.com/support/forums/topic/remove-start-time-and-end-time-from-all-events/
    there was a way to hide the time across all events, but I want something a bit more targeted.
    Any thoughts?

    #1146263
    Joan
    Participant
    #1146386
    Brook
    Participant

    Howdy Elanor,

    I would love to help you with this.

    Yeah I see what you mean, that does get a little difficult with just CSS. But this is possible with a little snippet in your theme files. Paste the following snippet at the top of your theme’s functions.php file. Replace the opening “<?php” with this snippet, as this snippet includes that opening tag.

    https://gist.github.com/elimn/ee4f74fe1b561148dc7cd7563c16d815

    Did that do what you wanted?

    Cheers!

    – Brook

    #1154897
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hide time only on Event List’ is closed to new replies.