propel
August 17, 2023, 11:47am
1
Hello there
I made a product page but the product image is appearing way too big on the desktop. On mobile, it looks good.
https://propel-the-world.com/products/vegan-t-shirts-leaf?variant=42288001155269
For the desktop, I want to reduce the width of the image as the screenshot below(the blue line) remaining the ratio of the images.
Can I know how to do this?
Please go to Online store → themes → Edit theme → Assets → base.css and paste this code at the end of this file
.shopify-section.slideshow {
max-width: 1303px;
margin: 0 auto;
}
Moeed
August 17, 2023, 11:56am
3
Hey @propel
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
propel
August 18, 2023, 12:46am
4
Thank you @Moeed . Your solution works but it is also changing the homepage.
And the changed width of the image isn’t the same as the element above. Can you tell me the other solution?
propel
August 18, 2023, 12:47am
5
Thanks, @Hardik29418
I can’t find the base.css file. Is there an alternative? Also, I want the change to be adjusted only to the product page. Is this possible?
@propel Yes, Making the adjustment only on the products page is possible.
Please go to Online store → themes → Edit theme → Layout → theme.liquid and paste this code before
{% if template.name == 'product' %}
{% endif %}