Posted: February 20, 2020 at 2:56 pm
|
When I use [ESPRESSO_TICKET_SELECTOR event_id=your_event_id] each event listed shows the date, time, partial description of the event and a View Details button. I’d like to eliminate the description and show just the class name, date and time and then style in a row with CSS (trying to come close to the EE3 display here: https://sanmateocprcertificationclasses.com/aha-bls/). The description is just a <p> so I can’t do a display none in CSS. Is there another place I can “turn off” the description in these events lists? |
Hi there,
Does not output an event list, it outputs a single ticket selector for the event ID you passed to it, I’m assuming you mean You can control the details shown in all event lists in: Event Espresso -> Events -> Templates -> Event List Pages Can you link me to the event list you are referring to so I can take a look? |
|
|
Yes, you’re right, I’m using [ESPRESSO_EVENTS category_slug=BLS] where BLS is the category type. Here’s what it looks like with no styling: |
Hi, You’ll find some settings to turn off the display of the Description (and arrange items) in Event Espresso > Events > Templates, under the “Event List Pages” heading. |
|
|
OK, turned off the description, thanks. Now I’d like to style the presentation on each of the classes, looking for the right selectors to do that. For example, I see the class name selector is a.ee-event-header.lnk but question: is that same selector used elsewhere in the application, or only on the category event lists? |
If you look at the parent element, the article element hold all of the element for each event and that has contextual classess applies, for example the class So if you want to apply those styles only to those events you could use:
If you wanted those styles only on that specific page, you can use:
|
|
|
Thanks, Tony, that helped. Is it possible to add additional details to the event time/date details that display on category pages? Details such as event price and the number of seats remaining. |
Specifically for category lists? It is possible, but you’re going to need to customize templates or create your own shortcode to do it, both of which will require some PHP, HTML, WordPress and EE knowledge as it is not something we can provide under support. If you are not comfortable with the above you could try contacting the folks at codeable who may be able to build this for you. Or we have some developers listed here: |
|
|
I’m OK with the PHP, HTML etc. but client doesn’t want custom programming. How about on the single event pages? Is it possible to show the number of seats remaining in a class there (without doing custom programming)? |
If it is not shown by Event Espresso, then you’ll need your own custom code to pull/display those details. For example: https://gist.github.com/Pebblo/3d019689d6c51a302eb95bbd3174b91e |
|
The support post ‘Customizing list of events for a specific category’ 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.