Posted: September 15, 2021 at 10:39 am
|
September 15, 2021 at 10:39 am Hello, does EE new version give the ability to have a message appear if no events are listed or if not listed in certain category? |
September 15, 2021 at 11:11 am Hi there, Which new version are you referring to, please? If you are using EE4 with the If you have a shortcode in use on a page somewhere can you link me to that page so I can take a look? |
|
|
can you please clarify? |
|
please see here So this the code [ESPRESSO_EVENTS] and this is the shortcode that has category but no event ..Nothings showing if there’s no event on category https://www.screencast.com/t/Bu2RaNj1cStw |
OK, so yes that’s the standard event list shortcode and it uses your themes Looking at your site it looks like your using a custom theme with Elementor, are you creating the theme yourself? |
|
|
Support post that was closed – sorry for adding this post but still would like to review with staff. Thanks! https://eventespresso.com/topic/no-events-shortcode/ Reply to last message: |
Hi there, Support threads automatically close if there is no activity, as there wasn’t a reply for 2 weeks and 2 days from my last reply it would have automatically closed, however, I’ve reopened it and merged your new thread into it. Are you using the latest version of Astra? Can you send me a copy of the theme so I can take a look? |
|
|
do you have a template or code we can use? we are using latest Astra Version: 3.7.3 By Brainstorm Force |
|
https://marjoriebrook seminars. com/test-non-events/ I used a blank category so it should have a text that says no events on this category but nothings show |
Ok, so Astra does have a I can give you a function to display the default https://monosnap.com/file/OVTJ3aOW8qFcFe9wWcYKhuMmtLb8Ng So here is what I would do, first create a child them for Astra: https://developer.wordpress.org/themes/advanced-topics/child-themes/ That allows you to copy template files into your child theme to be loaded. Next, copy Rename that copy to Add this function to your child theme: https://gist.github.com/Pebblo/3b0487a025306da5f4535677c59e9f12 Now you can edit that |
|
|
can we customize it to say “no event shown”? |
Yes, you change that At it’s most basic, you could have something like:
|
|
|
Thanks will give it a try |
You’re most welcome. |
|
The support post ‘No Events Shortcode?’ 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.