Featured Images dimensions

Hi there,
I’m using the Featured Image dynamic element but I dont know how to show the same sizes for all the images.

website: https://enoglobe.cloud/

thanks a lot!
Scenaryo

Hi @scenaryo,

Thanks for reaching out.
Regretfully, there is no such option to mention the height and width while using the Featured Image element and adding the image using the Dynamic Content. Alternatively, you can add the same CSS class to each element and add the custom CSS code with specific height and width into the Theme Options > CSS.
Please find the sample code which may help you to achieve this. I have used the CSS class timg, for all the elements and added the following code. You may need to specify the height and width you want.

.timg img
{
    width:100px;
    height:100px;
}

Please remember that the above code will work if copied as it is and don’t conflict with any existing style.
Please note that the code provided serves only as a guide to help you get started custom coding on your own if there’s no option offered in our theme or the products we bundle.
We really do not provide support for custom codes that means we can’t fix it in case it conflicts with something on your site nor will we enhance it.

Thanks

Hi @tristup ,
Thanks for the reply; the code works but the problem is that inevitably the photos - having different dimensions between them - turn out to be deformed:

Is there a way to equalize them starting, for example, from a common height (and perform a proportional resizing) or is it necessary to reload all the images with the same dimensions?
Thank you

Hi @scenaryo,

That might be due to the length of the Product Title, which makes the height uneven, even the images are in the same size. There is no specific rule to reload the images in the same dimensions.

Thanks for understanding

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.