Support

Home Forums Event Espresso Premium Change "Nothing Found" text for events page when there are no upcoming events

Change "Nothing Found" text for events page when there are no upcoming events

Posted: May 29, 2018 at 12:30 pm


NYSCDFI

May 29, 2018 at 12:30 pm

I have been digging through old forum posts (including https://eventespresso.com/topic/changing-the-default-no-events-message/) but in trying to follow these instructions the file paths and templates seem to have changed. Can you provide confirmation on whether this is the correct set of instructions to follow or if there is an update to either the files or the proper way to go about making these changes?

I am currently running 4.6.92 of EE.

If I just create a content-noevent.php file as the link above suggests, what do I put in that php file? I cannot find my theme’s content-none.php file to use as a base so I wasn’t sure what to even include.

Thanks for any help you are able to provide!


Josh

  • Support Staff

May 29, 2018 at 12:43 pm

Hi there,

The location of the “Nothing Found” text is somewhere within your theme’s files. If your theme has an archive.php template file that would be the first place to look.

As an example, the “twentyseventeen” theme has this code near the end of its archive.php template:

else :
  get_template_part( 'template-parts/post/content', 'none' );
endif; ?>

So in this example, the location of the “Nothing Found” text will be in
/template-parts/post/content-none.php.


NYSCDFI

May 29, 2018 at 12:50 pm

Thanks Josh!

If I wanted to copy the EE template and make my own so that it doesn’t default to the archives page, which template would I need to edit. They reference the tables template in the link I provided but I can’t seem to find anything remotely close to that in my files.

Thanks so much!


Josh

  • Support Staff

May 29, 2018 at 1:02 pm

Hi,

You’d actually make a copy of your theme’s archive.php template and put the copy into a child theme. Then you can make edits to that template.

The support post ‘Change "Nothing Found" text for events page when there are no upcoming 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 4 months, 2 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!