How can I make my product image full width on mobile only?

How can I make my product image full width on mobile only?

PetNShop
Tourist
5 0 2

Hello community!

I am currently building my product page, and I’m trying to make the main product image have no padding/ be full width on mobile only.

Look at the images below for a visual presentation of what I’m looking to do.

Store = https://petnshop.ca/products/original-calming-dog-bed

have a great day!

 

 

IMG_1278.jpeg

 

 

Reply 1 (1)

Mike-Consentik
Shopify Partner
169 28 36

Hi @PetNShop 

This is Mike from Omega

You can try my solution:

1. Open Theme -> Edit Code

2. Open base.css or theme.css in Assets folder and paste code below to the bottom of file

@media screen and (max-width: 749px) {
.grid--peek.slider li.grid__item:first-of-type {
    margin-left: 0; 
}
.product__media-list li.product__media-item {
    width: 100%;
}
}

Hope my answer will help you.

 

Mike from Omega

If you find this helpful, please give it a like or mark it as a solution.
Consentik GDPR Cookie Banner: Effortlessly stay in compliance with EU GDPR and CCPA with Google Consent Mode V2. Free plan available and 24/7 Support