Hi, could anyone help me reduce the size of image in image with text section and show the full image in both desktop and mobile. Thank you!
here’s my store url: https://u1130y-zj.myshopify.com/
A Shopify store owner requested help to reduce the size of an image in the “image with text” section on desktop while displaying the full image (not cropped) on both desktop and mobile.
Problem Details:
Solutions Offered:
CSS object-fit approach (tim_1): Add object-fit: contain; to the image-with-text img selector in the section’s Custom CSS
Media query padding adjustment (Mustafa_Ali): Remove padding on desktop viewports (768px+) by modifying theme.liquid file
Automated snippet tool (sgtlab): Provided a custom CSS snippet with installation options via their shop-booster tool
Resolution:
The issue was resolved successfully. The original poster confirmed one of the solutions worked, though they didn’t specify which approach they implemented.
Hi, could anyone help me reduce the size of image in image with text section and show the full image in both desktop and mobile. Thank you!
here’s my store url: https://u1130y-zj.myshopify.com/
I see it looks nice on mobile but I want to reduce the size on desktop make it smaller and show the full image not to remove it
Try adding this code to the “Custom CSS” setting of this section:
.image-with-text img {
object-fit: contain;
}
This way your image will always be shown in full.
@media screen and (min-width: 768px) {
.page-width {
padding: 0px !important;
}
}
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->
under the tag before the body ----->
if this code work please do not forget to like and mark it solution
Here is your snippet.
Follow this to setup the snippet code. no need to modify your theme!
Click “Preview” to see the fix.
You can install the script automatically or manually.
https://shop-booster.sgt-lab.com/snippet/u1130y-zj?snippetId=1743496591871
Thanks it worked!