Support

Home Forums Event Espresso Premium Divi and EE4 – Featured Image

Divi and EE4 – Featured Image

Posted: February 27, 2019 at 8:40 am

Viewing 3 reply threads


ITMA Houston

February 27, 2019 at 8:40 am

When adding a featured image to an event, it shows correctly on the list page, but it is cropped on the event page. How can I show 100% of the featured image on the event page?

I am using the Divi theme and already had their support look into it. They say that EE4 is cropping the image to 1024 x 538 px on the overview page and to 1080 x 630 px on the event page and because of those different values, the image doesn’t show in full.

Do you have filters or hooks that can be used to override the default cropping image size?

Thank you.


Josh

  • Support Staff

February 27, 2019 at 9:42 am

That’s not correct about EE setting the image sizes. They’re set in the Divi theme, or at least the copy of Divi that I have does.

The actual filters for this are in the divi theme e.g.
et_pb_index_blog_image_width
and
et_pb_index_blog_image_height
(found in Divi’s single.php file)


ITMA Houston

February 27, 2019 at 1:47 pm

Thanks, Josh. This was resolved thanks to your hint!

FYI, your single event view is using the single.php file from the theme and the PHP code of my functions.php file was updated.

Should have looked there to start with.


Josh

  • Support Staff

February 27, 2019 at 1:59 pm

Generally custom post types use single.php if there isn’t a more specific template to use. For example, a theme would need to have a template named
single-espresso_events.php, then WordPress would use that to display a single event page. You’ll find more information about how WordPress uses template files here:

https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post

Viewing 3 reply threads

The support post ‘Divi and EE4 – Featured Image’ 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