Support

Home Forums Event Espresso Premium Events Table View Add On – Editing "Nothing Found" Message

Events Table View Add On – Editing "Nothing Found" Message

Posted: May 16, 2016 at 12:30 pm


Riley

May 16, 2016 at 12:30 pm

Is there a way to edit the “Nothing Found” message that appears when their are no events in a category for the “Events Table View – Add On?” I’d like the message to say something like “There are currently no listings for this course..”

http://23b.4aa.myftpupload.com/schedule/


Josh

  • Support Staff

May 16, 2016 at 2:34 pm

Hi there,

Yes, you open up the template from the table view add-on, then near the bottom of the template you’ll find this code:

else :
	// If no content, include the "No posts found" template.
	espresso_get_template_part( 'content', 'none' );

You can change the line of code where it says
espresso_get_template_part( 'content', 'none' );
to be something like:
echo '<p>There are currently no listings for this course..</p>';

Along with that, you can copy the template over to your WordPress child theme to keep your changes safe from future updates.


Riley

May 16, 2016 at 3:42 pm

Worked perfectly. Thanks for the speedy response.


Riley

May 16, 2016 at 4:02 pm

Actually.. Where is the child theme should I place the espresso-events-table-template.template.php file for it to work? Thanks


Tony

  • Support Staff

May 17, 2016 at 12:39 am

EE checks the root directory of your child theme so the ‘main’ folder.

For example /wp-content/themes/my-theme/espresso-events-table-template.template.php

The support post ‘Events Table View Add On – Editing "Nothing Found" Message’ 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