06/29/2017 at 9:11 am
#427459
Keymaster
@ Melissa
RE: The images on the card are not sizing correctly. How can I fix this?
I took a look at the page. The images are being cropped correctly, scaled down and center cropped. For portraits this is more or less ideal. I see you are using logos. This crop mode would not be ideal in your use case. WE can change the default crop mode to better suit.
Install the Code Snippets plugin and add a new snippet with this code:
function cn_output_default_atts_image_filter( $atts ) {
$atts['zc'] = 2;
return $atts;
}
add_filter( 'cn_output_default_atts_image', 'cn_output_default_atts_image_filter' );
Save and Activate the snippet to run on the site’s frontend only.
This will scale the image down and instead of center cropping, it’ll add white space to fit the image dimension.
Hope this helps!
