How to make product pictures full width on product page

How to make product pictures full width on product page

dieuxstudios
Excursionist
14 0 10

IMG_3243.jpeg

Hi there,

 

I want to make my product pictures full width on the mobile version. Tried 1000 things but it didn’t work. Can someone help me please? My store url is: dieux.store

 

Thank you very much in advance!

 
 
Reply 1 (1)

CafeDelMar
Shopify Partner
163 36 46

Hey @dieuxstudios.

 

Here's how to achieve that:

1. Navigate to Sales Channels → Online Store → "Customize" button → Theme settings (Gear icon on the left sidebar) → Custom CSS
2. Add the following code:

@media screen and (max-width: 749px) {
	.product-media-container.constrain-height.media-fit-contain {
	  width: 100% !important;
	}

	ul.product__media-list li {
	margin: 0 !important;
	}

	.product__media-list .product__media-item {
	  width: 100% !important;
	}
}

3. Save (right top corner)
4. Hard refresh the storefront

 

If done correctly, the result should be like this:

Screenshot_d.png

➡➡   Easy Embed Code   ⬅⬅ add CSS/JS/Liquid codes to any page of your store



Speed Booster App - Improve your store speed in 3 clicks
- Was your question answered? Mark it as an Accepted Solution