What's your biggest current challenge? Have your say in Community Polls along the right column.

I want to make product image full width for mobile on dawn theme

Solved

I want to make product image full width for mobile on dawn theme

Ecomsmartify
Shopify Partner
114 2 31

I want to make product image full width for mobile on dawn theme and I want to make this like a reffrence image @DaisyVo Please help me with this thanks in advanc 
product page link: https://store1.ecomsmartify.shop/products/zoha
store passwrod: 4
my product page 

Screenshot 2024-11-25 092931.png

 reffrence image 👇

Screenshot 2024-11-25 093822.png

Accepted Solution (1)

anupam1607
Shopify Partner
53 10 10

This is an accepted solution.

Hey @Ecomsmartify 
Add below CSS in bottom of you your `section-main-product.css`

@media screen and (max-width: 749px) {
    .grid--peek.slider .grid__item:first-of-type {margin-left: 0;}
    .product-media-container.constrain-height.media-fit-contain{width: 100%;}
    .product__media-list .product__media-item {width: 100%;}
}
Buy me a coffee.
- Was your question answered? Mark it as an Accepted Solution. ❤️
- Don't forget to give me Thumbs Up.
- Store, Product and Collection Modifications | Apps and Sales Channel | Animation
- Lets connect anupammistry1607@gmail.com 

View solution in original post

Replies 5 (5)

topnewyork
Astronaut
770 124 141

Hello, @Ecomsmartify 

Thanks, for the info. Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

@media only screen and (max-width: 749px){
section#MainProduct-template--16666186809524__main .page-width {
    max-width: 100% !important;
    padding: 0px !important;
}
}

Thanks!

Need a Shopify developer?
Hire us at Top New York Web Design
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Try Big Bulk Discount To Boost Your Store Sales with Volume/Tier Discount

anupam1607
Shopify Partner
53 10 10

This is an accepted solution.

Hey @Ecomsmartify 
Add below CSS in bottom of you your `section-main-product.css`

@media screen and (max-width: 749px) {
    .grid--peek.slider .grid__item:first-of-type {margin-left: 0;}
    .product-media-container.constrain-height.media-fit-contain{width: 100%;}
    .product__media-list .product__media-item {width: 100%;}
}
Buy me a coffee.
- Was your question answered? Mark it as an Accepted Solution. ❤️
- Don't forget to give me Thumbs Up.
- Store, Product and Collection Modifications | Apps and Sales Channel | Animation
- Lets connect anupammistry1607@gmail.com 
Ecomsmartify
Shopify Partner
114 2 31

Hello @anupam1607 This is prefectly fine thanks for providing the exact solution, But there is some issue when I swip to next then the next slide is not taking the full width as you can see in the picture below Thanks again 😍 just please help me to fix this as well Thanks 

Screenshot 2024-11-25 121917.png

anupam1607
Shopify Partner
53 10 10

In componenet-slider.css file, remove this `.slider.slider--mobile` css from this`.slider.slider--mobile` class.Screenshot_6.png

 

Buy me a coffee.
- Was your question answered? Mark it as an Accepted Solution. ❤️
- Don't forget to give me Thumbs Up.
- Store, Product and Collection Modifications | Apps and Sales Channel | Animation
- Lets connect anupammistry1607@gmail.com 
Ecomsmartify
Shopify Partner
114 2 31

ooh this is perfect Thanks @anupam1607