Shopify themes, liquid, logos, and UX
My Product Page first image of product start showing to small on mobile and desktop both as seen below:
Then I added following code in my theme file editor /assets/base.css
" .productView-image.fit-unset .productView-img-container img:not(.zoomImg) {
width: 500px !important;
height: 500px !important;
}
"
after using this code my image start showing good on desktop device but on mobile device it start showing starched image
Like this on my mobile:
What's the URL of your store?
You can replace in base.css file. Use Width and Height 100% this will fix for both desktop and mobile view without product image stretch.
.productView-image.fit-unset .productView-img-container img:not(.zoomImg) {
width: 100% !important;
height: 100% !important;
}
tried your code didn't worked
results:
any different solution ?
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024