Remove start/end time from past events

Home Forums Calendar Products Events Calendar PRO Remove start/end time from past events

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #933773
    James Lavine
    Participant

    Hi, I’m wondering if there is a way to remove the time from only past events. I found a handy function here for forcing all-day events sitewide (which gets rid of the start/end time). That’s a clever trick, and was wondering there’s a way to just force all-day events for past events.

    Thanks!
    James

    #933800
    Geoff
    Member

    Hi there, James! Nice to see you again. 🙂

    Good question. I was able to remove the times for past events using the following snippet. However, the effect only seems to take hold when the page is refreshed. This will be a good starting place to get you going though.

    https://gist.github.com/geoffgraham/9ff7c5c6fdefa904a182

    Does this help get you started? Please let me know.

    Cheers!
    Geoff

     

    #937673
    Geoff
    Member

    Hey there, James! Just checking in to see if you had any follow-up questions or if you’re all good here–please let me know. 🙂

    Cheers!
    Geoff

    #937680
    James Lavine
    Participant

    That worked perfectly Geoff — thanks for your help!

    #937781
    Geoff
    Member

    My pleasure! So glad that helped out. I’ll go ahead and close this thread, but feel free to start a new one if anything comes up and we’d be happy to help. 🙂

    Cheers!
    Geoff

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