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;
}


TTB2018Fm

April 25, 2019 at 9:58 am

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.


Josh

  • Support Staff

April 25, 2019 at 10:08 am

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.


TTB2018Fm

April 25, 2019 at 10:19 am

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


Tony

  • Support Staff

April 25, 2019 at 11:04 am

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?


TTB2018Fm

April 25, 2019 at 11:29 am

That was it. Thank you so much!


TTB2018Fm

April 25, 2019 at 11:30 am

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?


Josh

  • Support Staff

April 25, 2019 at 1:08 pm

You did get a response:

https://eventespresso.com/topic/is-there-a-way-to-change-venue-to-read-location-on-tables-calendars-ets/#post-291165

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.

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: closed

Updated by  Josh 2 months ago ago

Topic Tags

Notifications

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