Support

Home Forums Events Calendar Add-on Set image sizes on grid view

Set image sizes on grid view

Posted: November 22, 2019 at 7:49 am

Viewing 1 reply thread


iesnaorg

November 22, 2019 at 7:49 am

Hello, The images in my grid view are defaulting a 150×150 thumbnail. How can I set the images to something like a 300×150? Can the grid use the image at full size instead of using WordPress’ auto thumbnail generated image?
https://calgary.ies.org/calendar-of-events/

Thank you.


Josh

  • Support Staff

November 22, 2019 at 4:53 pm

Hi,

It can and to change the size you add an array of dimensions to the PHP code within the Grid template file.

You’ll change this:
$feature_image_url = $post->EE_Event->feature_image_url();

to this:

$feature_image_url = $post->EE_Event->feature_image_url(array(350, 150));

Viewing 1 reply thread

The support post ‘Set image sizes on grid view’ 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