CSS Class based on inventory Post date Home › Forums › Ticket Products › Event Tickets Plus › CSS Class based on inventory This topic has 2 replies, 2 voices, and was last updated 9 years, 12 months ago by Geoff B.. Viewing 3 posts - 1 through 3 (of 3 total) Author Posts April 19, 2016 at 4:59 pm #1104626 RobertParticipant Is it possible to add a css class to a listing of events if the event is sold out so that I can change the color of the event? Likewise for other areas. Is there a code snippet that determines inventory that I can reference? April 19, 2016 at 7:46 pm #1104667 RobertParticipant Figured it out. May be useful for others. I created a list of upcoming events and added custom elements for if it’s sold out (passed in the loop). if (tribe_events_has_soldout($post->ID)) : echo ' - <span class="soldout">Sold out</span>'; endif; April 19, 2016 at 8:51 pm #1104676 Geoff B.Member Good evening Lindsay and welcome back! Thank you for reaching out to us. Kudos on finding the solution on your own and for sharing it for everybody’s benefit. You are welcome back on our support forums any time 🙂 For now, I am going to close this thread. Have a great week! Geoff B. Author Posts Viewing 3 posts - 1 through 3 (of 3 total) The topic ‘CSS Class based on inventory’ is closed to new replies. → Please verify your API key is correctly entered on the settings