I’m using EE4 with a third-party ticketing system and I would like to have a parent CSS class showing that an event has expired.
I use the EE4 Ticketing for event dates, times, ticket price, and sold out in order to populate these fields throughout the site. The actual EE4 ticket is never seen or interacted with on the frontend. The sold out status is set manually by an admin as events sell out on the third-party ticketing system.
From what I can find in the forums, the only CSS specific to expired events is on the actual EE Ticket: .espresso_events .ticket-sales-expired
Unfortunately this CSS class isn’t helpful to me because it’s applied directly to the ticket.
Is there a way to have a CSS class, ideally on the <article> tag, for when the last date and time of an event has expired?
For anyone else who comes across this thread, Josh’s code adds DTE to the <article> tag for expired events and DTU for upcoming events.
Also potentially useful (although I’m not going to use it for my current project) it adds DTA for events that are current happening.
Thanks so much Josh!
Viewing 2 reply threads
The support post ‘CSS class for expired events when using 3rd party ticketing’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.