Posted: June 3, 2019 at 6:53 pm
Hello! Just wondering if it’s possible to have a message appear if there are no upcoming dates? Something like “Contact me to be kept in the loop for upcoming dates” with the Contact me as a link to the contact page. Example event page here https://maxim.bantergroup.com.au/copywriting-courses/maximum-copy/ Regards |
|
Hi Melanie, That may be possible. May are ask is there a shortcode on that page that outputs the dates when there are upcoming dates? If so, what’s the shortcode? |
|
Hi Josh! Thanks for your reply. The shortcode at the bottom of that page is Melanie |
|
Sorry, forgot to add that I would need the same feature (if possible) at the bottom of all course pages. I think currently all dates are expired so no pages are displaying anything: |
|
If there are no events for the ESPRESSO_EVENTS shortcode to display, it will try to load your themes So, one option is to create a However, there is one issue with doing that in that if your theme is calling that same file for other areas and doesn’t have a template for specific post types, the new template you use will be used when those sections return no posts. Does your theme current have templates to display when no content is found? |
|
Hi Tony … I have no idea!! Where would I look to see if my theme has a template to display when no content is found? Melanie |
|
You’d look in the parent theme for a The location of which depends on your theme, but any file with ‘none’ in the filename could it. Based on the fact that there’s no content loading currently when there are no posts/events on the above pages, it’s unlikely you’ll have a The reason you want a file from your theme (if it has one already) is it will use the classes etc that your theme expects rather than just using any file (you could copy the |
|
The support post ‘Add message if no upcoming dates’ 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.