tylerhorton80 Posted April 22, 2023 Share Posted April 22, 2023 Hello, How can I increase the size of my product images on Mobile? I've been fiddling with code I find online and nothing seems to work. I would like them to remain the correct ratio if possible--just not so tiny. then scroll down and it looks like this: Link to comment
tuanphan Posted April 24, 2023 Share Posted April 24, 2023 Can you share link to shop page? We can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
tylerhorton80 Posted April 25, 2023 Author Share Posted April 25, 2023 https://www.tylerhorton.photography/portfolio Link to comment
tuanphan Posted April 26, 2023 Share Posted April 26, 2023 Try adding to Design > Custom CSS @media screen and (max-width:767px) { .ProductItem-gallery-slides-item, section.ProductItem-gallery { overflow: visible !important; height: auto !important; } .ProductItem-gallery-slides:before { padding-bottom: 150% !important; } img.ProductItem-gallery-slides-item-image { object-fit: contain !important; height: auto !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
tylerhorton80 Posted April 30, 2023 Author Share Posted April 30, 2023 @tuanphan Thank you! That was VERY helpful. I altered the code slightly and this is a HUGE improvement! @media screen and (max-width:767px) { .ProductItem-gallery-slides-item, section.ProductItem-gallery { overflow: visible !important; height: auto !important; } .ProductItem-gallery-slides:before { padding-bottom: 75% !important; } img.ProductItem-gallery-slides-item-image { object-fit: contain !important; height: auto !important; } } tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment