We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Product image gets cropped in the product page

Solved

Product image gets cropped in the product page

miltokas
Explorer
106 0 32

Hi all!

I am having a problem in the mobile view that for some products the main image gets cropped and it shows haft of the second. This only happens for some products. 

Any idea what could be?

Thanks for any support!

 

There: Dawn

Example of page with issue on mobile: https://vengastore.com/collections/women-accessories/products/finger-chain-bracelets

 

miltokas_0-1706551619593.png

 

Accepted Solution (1)

BSS-Commerce
Shopify Partner
3478 465 560

This is an accepted solution.

Hi @miltokas ,

1. Go to Themes -> Edit code, find file name "base.css", add this code

@media screen and (max-width: 767px) {
	ul.product__media-list.grid.slider.slider--mobile {
		justify-content: unset;
		scroll-padding-left: unset;
	}
	
	ul.product__media-list.grid.slider.slider--mobile li {
		width: 100%;
	}
}

2. Find file name "section-main-product.css" and add this code

@media screen and (max-width: 749px){
	.product__media-wrapper slider-component:not(.thumbnail-slider--no-slide) {
		margin-left: unset;
		margin-right: unset;
	}
}

The result will be like:

Before

view - 2024-01-30T185054.743.png

After

view - 2024-01-30T185151.096.pngview - 2024-01-30T185203.539.png

Hope it helps @miltokas 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


Product Labels by BSS | B2B Solution & Custom Pricing


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Replies 2 (2)

BSS-Commerce
Shopify Partner
3478 465 560

This is an accepted solution.

Hi @miltokas ,

1. Go to Themes -> Edit code, find file name "base.css", add this code

@media screen and (max-width: 767px) {
	ul.product__media-list.grid.slider.slider--mobile {
		justify-content: unset;
		scroll-padding-left: unset;
	}
	
	ul.product__media-list.grid.slider.slider--mobile li {
		width: 100%;
	}
}

2. Find file name "section-main-product.css" and add this code

@media screen and (max-width: 749px){
	.product__media-wrapper slider-component:not(.thumbnail-slider--no-slide) {
		margin-left: unset;
		margin-right: unset;
	}
}

The result will be like:

Before

view - 2024-01-30T185054.743.png

After

view - 2024-01-30T185151.096.pngview - 2024-01-30T185203.539.png

Hope it helps @miltokas 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


Product Labels by BSS | B2B Solution & Custom Pricing


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
theamazingrt023
Visitor
1 0 0

I cant find Base.css in my code theme can you give me some advice same thing is happing to me 

 

I brought a store theme called electro