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


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!

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  biaproviders 1 month ago ago

Topic Tags

Notifications

This topic is:
pending
Do NOT follow this link or you will be banned from the site!