Support

Home Forums Event Espresso Premium Add "This event is expired and not part of the 2020 schedule" to expired events

Add "This event is expired and not part of the 2020 schedule" to expired events

Posted: April 22, 2020 at 4:17 pm

Viewing 2 reply threads


biaproviders

April 22, 2020 at 4:17 pm

Hello, I would like to Add this text: “This event is expired and not part of the 2020 schedule”. To all expired events, preferably before/after/next to the event Date. I found a way to add it under the ticket selector but would like when a user goes to the event page it will give them a warning of some sort that the event is expired. The catch would be I still want the old events searchable and viewable just a message indicating it’s expired would be ideal.


Josh

  • Support Staff

April 22, 2020 at 7:53 pm

Hi,

This can be done by adding a little bit of PHP code to your site.

Here’s a gist that has the code:

https://gist.github.com/joshfeck/00dcad9b8c2cab55285afeb5e3cfb068

You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file.


biaproviders

April 23, 2020 at 12:53 pm

Thank you so much that worked like a charm!

Viewing 2 reply threads

The support post ‘Add "This event is expired and not part of the 2020 schedule" to expired events’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso