Static height to thumbnail images in Grid Gallery
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