Support

Home Forums Event Espresso Premium No Posts Found Template?

No Posts Found Template?

Posted: July 28, 2015 at 11:24 am

Viewing 1 reply thread


Dallas REIG

July 28, 2015 at 11:24 am

Where can I find this template?

espresso_get_template_part( ‘content’, ‘none’ );

It returns a blank area on the page so I would like to modify it to return a message but I am not finding any such template. I am assuming it exists otherwise why put this line at all, :).

Thanks in advance.


Josh

  • Support Staff

July 28, 2015 at 12:50 pm

Hi Maceo,

It turns out the line of code you reference here loads the content-none.php template from the twentyfourteen theme. Event Espresso does not directly call in the loop-templates from the Espresso Arabica child theme for twentyfourteen.

Have you copied code from the loop- files from the Espresso_Arabica_2014 child theme into your own WordPress theme? If so, you can swap in a call to another template or remove it and replace with your own message.

If you haven’t copied those over, WordPress will pull in your theme’s No Posts found template, and you can add something like this within your theme’s No Post found template to display a special message if no event posts are found:

<?php if ( is_espresso_event_archive() ) : ?>
	<p>Sorry no events here!</p>
<?php endif; ?>
Viewing 1 reply thread

The support post ‘No Posts Found Template?’ 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.

Event Espresso