hello,
my images automatically resize. Id like them to fit into the thumbnail size so they are not cropped.
please advise

hello,
my images automatically resize. Id like them to fit into the thumbnail size so they are not cropped.
please advise

Hi Joshua,
Thanks for reaching out.
Does that mean you wish to have an uneven layout since those images are not all squared? If yes, please add this code to your global custom javascript.
jQuery ( function($) {
$('.page-template-template-layout-portfolio a.entry-cover').each( function() {
var img = $(this).css('background-image').replace('url(','').replace(')','').replace(/\"/gi, "");
$(this).attr('style','').css('padding-bottom', 'unset').prepend('<img src="' + img + '" >');
} );
$(document).ready( function() {
$(window).trigger('resize');
} );
} );
This should serve as a snippet in which we don’t maintain, hence, we can’t provided support or cover this. Any enhancement and future customization should be user’s responsibility.
Thanks!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.