Support

Home Forums Event Espresso Premium Using table tempalte to show upcoming event but cancelled events are showing too

Using table tempalte to show upcoming event but cancelled events are showing too

Posted: April 16, 2019 at 3:42 pm


TTB2018Fm

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 ] 


Josh

  • Support Staff

April 17, 2019 at 12:15 pm

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:

tr.espresso-table-row.cancelled {display: none !important;}


TTB2018Fm

April 18, 2019 at 9:23 am

Is there a way to do the same thing for the calendar template … I tried:
.fc-event.cancelled


Josh

  • Support Staff

April 18, 2019 at 10:02 am

.fc-event.cancelled {
display: none;
}

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:

#espresso_calendar .fc-event.cancelled {
display: none;
}

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Josh 24 minutes ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!