How can I get the image that has a tall aspect ratio to display in a Gallery Image content block to vertically align to display the the top of the image – not the center.
See the second thumbnail at https://affiliations.si.edu/about-us/affiliate-directory/
Thanks!
Hey galpinr,
Try adding this code in functions.php and upload the tall image again and use it:
add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
function enfold_customization_modify_thumb_size( $size ) {
$size['portfolio'] = array('width'=>495, 'height'=>400, 'crop'=>array( 'center', 'top' ));
return $size;
}
Best regards,
Nikko
Hi Nikko,
Thank you – that code does fix the vertical alignment issue. Excellent!
Hi galpinr,
Glad that we could help :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko