How to make product image full width on mobile?

How to make product image full width on mobile?

ltw_00
Tourist
4 0 1

Hello there,

 

I have been trying to make all product images full width with no padding on both sides on mobile. And i try different code but doesnt seem to work. We are using Dawn theme at the moment.

 

Anyone can help please? 

 

the website is: https://latetoworkjewellery.com/

Screenshot 2024-09-29 at 10.31.47 AM.png

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
8420 2016 2471

Hi @ltw_00 

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 "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

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

.product__info-wrapper.grid__item {
    margin: 0 1.5rem;
    padding: 0 1.5rem;
}
}
</style>

 

And save. 

Result:

Made4uoRibe_0-1727560258088.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
ltw_00
Tourist
4 0 1

Hi there,

 

Thanks for the reply - I tried on the code and it works. However it also created a gap on the right screen when you scrolls - is there a way to fix this? 

 

Thanks a lots for your help 🙂 

 

IMG_0123.jpg

Yanthtech
New Member
4 0 0


Here’s a shorter reply:

Hi there,

To make the images full width, you'll need some CSS adjustments. If you'd like help with that, I can assist you!

Best,
Esther

BSSCommerce-B2B
Shopify Partner
1780 546 605

HI @ltw_00 , 

I have reviewed your requirement, you just need to edit css script and the issue will be resolved.  You can follow my instructions! 

 

Step 1: Go to Admin -> Online store -> Theme > Edit code:

BSSCommerceB2B_0-1727577909661.png

 

Step 2: Search for the file base.css. And add this code snippet to the end of the file.

 

@media screen and (max-width: 749px) {
  .product__media-list.contains-media.grid {
    column-gap: unset !important;
    scale: 1.04 !important;
  }
}

 

 

Step 3: Save and reload home page.

=>> The result: 

BSSCommerceB2B_2-1727577963980.png

 

I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.

Have a nice day sir!

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

ltw_00
Tourist
4 0 1

Hi there,

 

I tried the code but doesn't seem like it work. 

 

The layout still look the same when I added the code.

 

Cheer,