Product image full width on mobile - Dawn Theme

Product image full width on mobile - Dawn Theme

Julietteweb
Excursionist
58 0 10

Hello,

 

I want to display the product image in full-width on the mobile view. The codes I've tried don't work.

 

Often the image doesn't extend to the right of the screen, and the next image appears on the right. I'd like the product images to be full-width.

 

Here's the link to my store: https://ancestraathletes.com

 

Thank you!

Replies 9 (9)

websensepro
Shopify Partner
1220 136 156

Hi @Julietteweb 
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

 

 

<style>
@media screen and (max-width: 749px) {
    .product__media-list .product__media-item {
        width: 100% !important;
    }
}
</style>

 

websensepro_0-1727698010961.png

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

Need a Shopify developer?
Hire us at WebSensePro
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here

Free Shopify Beginner Tutorial
Julietteweb
Excursionist
58 0 10

Hello @websensepro 

 

Thank you for taking the time to help me. 

 

I added the code. It doesn't completly work. The image isn't completly full width, there is a space oon the left side and above the image.

 

image-full-width.jpg

websensepro
Shopify Partner
1220 136 156

@Julietteweb , replace my old code with this and then tell me:

<style>
@media screen and (max-width: 749px) {
    .product__media-list .product__media-item {
        width: 100% !important;
    }
    .grid--peek.slider .grid__item:first-of-type {
        margin-left: 0 !important;
    }
   .section-template--22195795263753__main-padding {
       padding-top: 0 !important;
    }
}
</style>

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

If you like my help, you can help me buy a COFFEE

Thanks!

Need a Shopify developer?
Hire us at WebSensePro
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here

Free Shopify Beginner Tutorial
Julietteweb
Excursionist
58 0 10

@websensepro 

I replaced the code and I have now a little less space above de product image but is still the same on the left side. 

 

Capture d’écran 2024-09-30 154358.jpg

Julietteweb
Excursionist
58 0 10

Hello @websensepro 

 

do you know how I could make the product image completely full-width so that there's no shift to the left?

Thank you very much!

Sangeetanahar
Explorer
541 36 69

hello @Julietteweb 

Go to online store ----> themes ----> actions ----> edit code ---->assets ---->base.css...> ...add the code end of the file

@media screen and (max-width: 749px) {
    .grid--peek.slider .grid__item:first-of-type {
        margin-left: 0 !important;
    }

.slider.slider--mobile .slider__slide {
    width: 100%;
}
}

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me [email protected] - Skype: live:sangeetarahuldhiman -Whatsapp: +917009811712
Checkout Some Free Sections Here
Julietteweb
Excursionist
58 0 10

Hello @Sangeetanahar 

Thanks for your time, the code works for showing the product image in full-width but the thumbnails became really big !

How can I change that ?

 

error-product-image-full-width.jpg

Tech_Coding
Shopify Partner
309 78 69

Hello @Julietteweb 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (max-width: 767px)
   .product__media-item.grid--peek.slider .grid__item:first-of-type {
       margin-left: 0 !important;
    }
  }
</style>

Tech_Coding_0-1727698351113.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.
Julietteweb
Excursionist
58 0 10

Hello @Tech_Coding 

Thank you for your time. It did not work actually...