The ratio of the Size Chart photo in my products is incorrect, tried to fix them from the pages but still looks weird. Are there any other ways to make sure the image ratio is correct? Thank you!!
Size Chart:
A store owner reported that size chart images on their product pages display with incorrect aspect ratios, appearing distorted despite attempts to fix them through the page settings.
Solutions Provided:
Two community members offered CSS-based fixes:
assets/theme.css) targeting the accordion content image element to set height to autotheme.liquid file before the closing </body> tagResolution:
The original poster confirmed that one of the suggested solutions successfully resolved the image ratio issue.
The ratio of the Size Chart photo in my products is incorrect, tried to fix them from the pages but still looks weird. Are there any other ways to make sure the image ratio is correct? Thank you!!
Size Chart:
Hi @ipwt57 ,
May I suggest to update code these steps:
.accordion__content.rte img {
height: auto;
}
Hello,
I am San from MS Web Designer.
Go to Themes > Edit code > Theme.liquid > at the bottom place this code before
Do let me know in case of any concerns.
Regards,
San
it works!! thank you so much!