The Photo view that comes with Events Calendar Pro is a great way to showcase your events if you have featured images. Sometimes it can happen, though, that you don’t have a featured image on hand for an event, or you want to use the same featured image for more events. In that case, we’ll show you how to change the featured image in Photo View to something else.

The default featured image in action in Photo view

While photo view does provide a default featured image, it acts more like a placeholder. And there is a way to replace that featured image with a bit of code.

First, make sure that you have your desired default featured image uploaded into your media library on the website. Once the image is uploaded grab its URL, because you will need to use that in the code snippet.

Click the “Copy URL” button to grab the direct URL of the image.

Head over to your functions.php file and add the next piece of code.

add_filter( 'tribe_events_views_v2_view_template_vars', 'tribe_custom_default_featured_image' );

function tribe_custom_default_featured_image( $template_vars ) {
	$template_vars['placeholder_url'] = '';
	return $template_vars;

Remember to replace the image URL on line 4 with your own one. Save and you’re done.

The result of our work: Photo view using the custom default featured image

Enjoy your new default featured image in photo view.