Static height to thumbnail images in Grid Gallery

Please Note: Theme customizations go beyond the scope of our support services and this article is provided solely as a courtesy to our customers. Please take a moment to review the Scope of our Support.

Question:

Is it possible to make all thumbnail images in the Grid Gallery with static height , so that the height doesn’t depend on the image ratio?

Original poster

Solution:

If, for example, you would like to set a 250 pixels height to the images, you have to open the theme’s lib/functions/ajax.php file and modify line 48:

$thumbnail = pexeto_get_resized_image($preview, $_GET['imgwidth'], '', get_post_meta($post->ID, 'crop_value', true));

to be like this:

$thumbnail = pexeto_get_resized_image($preview, $_GET['imgwidth'], '250', get_post_meta($post->ID, 'crop_value', true));

Pexeto

Was this useful? 3