Posted: August 28, 2019 at 7:27 am
We would like to visually show if an event is sold out via a css class. I can’t see anything to hook into and wondered if there is a way to implement one? |
|
Hi there, The my events shortcode already includes a ‘status bar’ that shows the current status of the event: https://monosnap.com/file/8zfc0C5dKOJl7vkGU6jGjJ6Vp35CAB If I remember correctly your using a custom The way the template does it now is like this |
|
Sorry, that’s for the backend, we’re using the shortcode for the frontend: |
|
My example wasn’t for the backend, but it’s for the front end output using Are you loading a custom template for the above output? Meaning do you have a copy of |
|
Yes, got the template in there, no idea what to add to it though |
|
Pretty much the same as my first reply:
So you could change this line:
To this:
Now your row has the class |
|
Hi, I added the following: From what I can see |
|
DTU is datetime upcoming DTS is datetime sold-out If your getting events showing upcoming that are sold out can you link me to both the list and the event in question so I can take a look? |
|
Hi Tony, sorry after double checking the events that seemed wrong, they had rogue registrations available on a hidden ticket so it was throwing it out. Got rid of the hidden ticket and all works as expected, thanks. |
|
The support post ‘Event list to show sold out via css?’ 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.