Shopify themes, liquid, logos, and UX
hello, i would like to change my images size on my product page, i don't want them to have border on the side and have like 80% first image and 20% second image, like in the image i added. Is there a code that could help me achieve this ? Thank you
Hi @okocha21
Please share with me your store URL?
Best,
Daisy
HI @okocha21
@media (max-width: 749px) {
.index-product .product__images--mobile-slider .product__slide {
width: calc(100% - 80px);
margin: 0;
border: 1px solid #000;
}
.index-product .product__images--mobile-slider .product__slides {
padding-left: 0px
scroll-padding: 0;
}
}
Hi @okocha21
You can try to add this code to Custom CSS in Online Store > Themes > Customize > Theme settings and check
@media (max-width: 749px) {
.index-product .product__images--mobile-slider .product__slide {
width: calc(100% - 80px);
margin: 0;
border: 1px solid #000;
}
.index-product .product__images--mobile-slider .product__slides {
padding-left: 0px
scroll-padding: 0;
}
}
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Hi @okocha21
You can follow the instruction below:
1. Go to Shopify > Theme > Customize
2. Copy and paste this code on Theme settings > Custom CSS section
.product__slides {
border: none !important;
box-shadow: none !important;
}
@media screen and (max-width: 749px) {
.product__images--mobile-slider .product__slide {
width: 80% !important;
}
}
I hope it helps.
Liz
Hello, @okocha21
Please share "Store URL"
Thanks!
Hi @okocha21
Please share your store URL.
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025