Posted: April 16, 2019 at 3:42 pm
Is there a way to use the shortcode for the table such as this and exclude cancelled events? [ESPRESSO_EVENTS_TABLE_TEMPLATE table_pages=2 ] |
|
Hi, The shortcode doesn’t have options for this, but what you could do is assign the event to a “cancelled” category, then add the following CSS to your site’s custom stylesheet/Additional CSS page:
|
|
Is there a way to do the same thing for the calendar template … I tried: |
|
will hide an event with the category “cancelled”. If the CSS doesn’t immediately take effect it may help to clear your browser’s cache. It may also help to add more specificity to the selector. For example:
|
|
This solution worked for the table but NOT the calendar. Any other suggestions? It’s been a week so I know it is NOT a cache issue. |
|
Hi, Can you clarify? The very last solution I posted would not be for the table. Maybe you can post a link to the page in question so we can investigate further. |
|
I added the category cancelled – renamed it .nopost – to make sure it was not conflicted with status today … For the table, the category css is working: https://bit.ly/2GFBmRL For the calendar, the category css is not working: https://bit.ly/2VsK12d |
|
Hi there, Go to Event Espresso -> Calendar -> Basic Settings. You’ll find the option ‘Enable CSS for Categories’ and it looks like its set to No on your site, is that correct? If so set that to Yes, update the settings and retest, does it work then? |
|
That was it. Thank you so much! |
|
I posted last week on displaying “Venue” in tables as “Location” … I didn’t get a response. Is there a way to do this on what the user sees only? |
|
You did get a response: |
|
The support post ‘Using table tempalte to show upcoming event but cancelled events are showing too’ 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.