• Resolved Dan Claudiu G.

    (@dcgavril)


    Hello,

    Thank you for developing this great plugin.
    I have looked at the documentation and the previous answers but I haven’t found a way to hide the “Add to calendar” button and the rest of the organizers details found on the bottom for past events(only).
    Is it possible ? can you share a snippet ?

    If possible it, I think it would be useful for other users to have the button “add to calendar” removed if the event has passed, as it’s not useful to add in the personal calendar a past event.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support masoodak

    (@masoodak)

    Hi @dcgavril,

    Thanks for reaching out!

    To achieve this, you will need to customize template files calling add to subscribe section and add a conditional on bailing if the event date is in the past, meaning that the event has passed.

    Here’s where you can learn more about template file customization,

    https://theeventscalendar.com/knowledgebase/guide/customization/

    Kindly give it a try and let us know if you require further assistance.

    Kind regards,
    Masood

    Plugin Support Abz

    (@abzlevelup)

    Hey @dcgavril, this thread has been inactive for a while, so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up, and we’d be happy to help.

    Cheers,
    Abz

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove “Add to calendar” button only for past events’ is closed to new replies.