Support

Home Forums Event Espresso Premium Show message if no classes appear

Show message if no classes appear

Posted: May 18, 2020 at 12:44 pm


kdaily

May 18, 2020 at 12:44 pm

How can we show a message if no classes show up on the main events page or when filtered by the tag dropdown?


Tony

  • Support Staff

May 18, 2020 at 1:19 pm

Hi there,

That output is most likely controlled by your theme.

Can you link me to one of the pages in question so I can take a look?


kdaily

May 18, 2020 at 1:32 pm

Our events listing is on https://register.rmf.org


Tony

  • Support Staff

May 19, 2020 at 2:48 pm

Ah, ok. That output is not from your theme, it’s from the EE4 Table View Template Add-on.

Currently, that add-on will show a ‘no posts/events found’ message if nothing at all was found from the shortcode parameters, not from the category filter.

May I ask what string you would like to use when no events are displayed? I can put together a snippet that can add a row with some text using jQuery.


kdaily

June 2, 2020 at 7:56 am

Hey Tony, sorry it took so long to respond. I’d like it to say something to the effect of, “Sorry, there are no classes scheduled with that parameter. Please contact Alice@rmf.org for more information.”


Tony

  • Support Staff

June 3, 2020 at 5:35 am

For that you can use a snippet like this:

https://gist.github.com/Pebblo/c678d60c553f5426fe75b25d73683fbd

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

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  Tony 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!