Posted: May 24, 2017 at 8:54 am
I posted a similar question for a sold out CSS class in the calendar forum.
My client wants the sold out events to be visible but to have an effect across the featured image that will indicate that it’s sold out.
I can do this using the “status-sold_out” class name that’s applied on individual event pages and when the [ESPRESSO_EVENTS] shortcode is used, but that class name isn’t showing up when I get results with the EE_Event_List_Query.
Here’s my code for the query:
Please let me know if there is a way to get the sold out class name to be applied for this query. Thanks!
When you use the above you completely take over the output of the details, so you need to add a ‘sold-out’ status to your output.
Basically, you need to check if the event is sold out yourself and add the class where you need it to be when using the above.
Perfect! Thanks so much!
I’m not sure if this can also be done for the EE4 Calendar. I’ve posted in that forum with a similar question.
If you have a moment, can you take a look there and let me know if something similar can be applied to get a sold out class name for events on the calendar?
You’re most welcome.
I’ve posted in your other thread for the calendar but will not here in case any is following, currently, it is not possible to add this to the calendar but we have a feature request to possibly include it within a future version.
The support post ‘Sold Out CSS class for query’ 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.