Hi, I am using the Events Calendar plugin with Enfold. I created an event and added a featured image to this event. However, the image being used on the Single Events template is too small and is cropping my image. Here is the event I am working with: https://www.zionrockbaptist.org/event/pastor-emeritus-james-c-edwards-appreciation/. I think Enfold is using the thumbnail or a smaller version of the featured image because the image is being cropped.
Here is a screenshot of the issue: https://share.getcloudapp.com/ApuXK9AA
I would like the image to be taller like the original file. Or just adjust the template to use the full-size image. I couldn’t find any CSS to fix this so I was hoping you could help me out a bit.
Is there a way to get the Single Events template to show the full size featured image? I appreciate any help you can offer. Thank you!
Hey Caleb,
Thank you for the inquiry.
The maximum size of the featured image used in the single event pages is set to 1360x321px by default, but we can adjust it by using this filter in the functions.php file.
// adjust the size of the single events featured image
add_filter('post_thumbnail_size', 'avf_single_event_post_thumbnail_size');
function avf_single_event_post_thumbnail_size($size)
{
if ( is_singular('tribe_events') ) {
$size = 'full'; // Change to your desired image size.
}
return $size;
}
This should display the original version of the featured image.
Best regards,
Ismael
Thank you for the quick response! That filter worked perfect. You guys are awesome!
Hi Caleb,
I’m glad that Ismael could help you :)
Thanks for using Enfold and have a great weekend!
Best regards,
Nikko