Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Edit the Events Table View Template Add-on for Event Espresso 4 to add the featured image for an event

This can be done by relocating one of the templates to your child theme and making a change to a line of code. This will ensure that your customization is not lost on a software update.

The support team at Event Espresso will never recommend you edit any core plugin or add-on files directly.

Here are the steps:

  1. Login to your WordPress root with your preferred SFTP or FTP client. Filezilla and Cyberduck are free options. On a Mac? Try Transmit

  2. Browse to this location:


You'll see two files there:



  1. Download a copy of the espresso-events-table-template.template.php file to your computer

  2. Now browse to your child theme:


Not using a child theme? A child theme allows you to customize your WordPress theme without losing customizations when you update your theme through WP. Here is how to setup a child theme.

  1. Upload the file that you downloaded earlier to the location above

  2. Open the espresso-events-table-template.template.php file for editing

At about line 110 you'll see this line of code:

			<td class="event_title event-<?php echo $post->ID; ?>"><?php echo $post->post_title; ?></td>
  1. Replace the line above with this:
			<td class="event_title event-<?php echo $post->ID; ?>"><?php echo $post->post_title; ?><br /><?php if ( has_post_thumbnail() ) : ?>
	<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
	<?php the_post_thumbnail('thumbnail'); ?>
<?php endif; ?></td>

Then save changes.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment