Hello, I would like to be able to supply a message should there be new events listed, currently the page just loads nothing. Is there a setting somewhere or a way for me to add a message to my custom templates with PHP?
If it’s the default events archive it’s using your theme’s archive.php template (if it has one, index.php if not) so that template needs to load some content (or another template part) if there are no posts but really we need more specific on the output you are viewing as there are a few.
Category list would be the one I’m hoping to fix. So if someone chooses an event by category to view, how can I add a message that says “no events” if there are none in that particular category? As of now it just loads header and footer and no content.
That’s calling a content-none.php template file with whatever is in that to display for no posts, your theme isn’t doing that and you’ll need to add it to one/all of the above templates to all a template part for when you have no posts.
Viewing 3 reply threads
The support post ‘Default Message For No Events?’ 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.