Support

Home Forums Event Espresso Premium EE4 – Grid View Image Resizing

EE4 – Grid View Image Resizing

Posted: March 15, 2015 at 1:13 pm


Debby Kurti

March 15, 2015 at 1:13 pm

Is it possible to change the image size on the grid? The default looks like it is about 150×150 but I would like that to be 300×300. Also, is it possible to set the grid parameters to specify the number of squares in a row? For example, if I want rows to have only 3 events each?

Thank you,

Debby Kurti
Table Top Inventing


Dean

March 16, 2015 at 5:24 am

Hi,

The Grid template uses the default WP Thumbnail size. This can be changed in the Media settings, but this may affect thumbnails site wide.

You may need to use a Regenerate Thumbnails plugin after changing the media size as WordPress doesn’t automatically resize existing thumbnails.

There isn’t a way to specify the rows from parameters, what happens is the grid items simply fill up the available space and then drops to the next line.

What you could do is in the post/page where the shortcode is, click the TEXT tab and then wrap the shortcode in a div like so:

<div style="width: 660px; margin: 0 auto;">
[ESPRESSO_GRID_TEMPLATE]
</div>

The width (660) is based on the width of 3 default grid items.

  • This reply was modified 9 years, 1 month ago by  Dean. Reason: made it so the code actually shows


Debby Kurti

March 17, 2015 at 10:37 am

Great. That worked. I did notice that when I put in the category_slug parameter, the images all displayed in a column instead of a row. Is there a way to change the orientation?


Dean

March 18, 2015 at 3:14 am

The category_slug parameter shouldn’t affect the output at all. Can you provide a link to an example please?

The support post ‘EE4 – Grid View Image Resizing’ 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