Resizin prodcut pictues in product page on mobile verison

Solved

Resizin prodcut pictues in product page on mobile verison

radaApeta
Explorer
55 0 19

Hi there,

I've already resized the photos on the desktop version, but now I need to adjust them for mobile as well. The goal is to make sure all the shoes fit properly within the box. I'll send two pictures where you can clearly see the issue. Thanks a lot for your help! 😊

Website: https://81e325-28.myshopify.com/

0007

IMG_4556.jpgIMG_4557.jpg

valenta14
Accepted Solution (1)

BSS-TekLabs
Shopify Partner
2350 702 828

This is an accepted solution.

- Here is the solution for you @radaApeta 
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head> and press 'Save' to save it

 

<style>
@media only screen and (max-width: 600px) {
.thumbnail.global-media-settings img {
    object-fit: contain !important;
}
}
</style>

 

- Here is the result you will achieve:

BSSTekLabs_0-1726754005422.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


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

View solution in original post

Replies 2 (2)

Tech_Coding
Shopify Partner
337 93 84

Hello @radaApeta 

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){
  button.thumbnail img{
      object-fit: contain !important;
   }
}
</style>

Tech_Coding_0-1726753852183.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.

BSS-TekLabs
Shopify Partner
2350 702 828

This is an accepted solution.

- Here is the solution for you @radaApeta 
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head> and press 'Save' to save it

 

<style>
@media only screen and (max-width: 600px) {
.thumbnail.global-media-settings img {
    object-fit: contain !important;
}
}
</style>

 

- Here is the result you will achieve:

BSSTekLabs_0-1726754005422.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


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