We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: Problem: In mobile mode, the product photo is shown very! zoomed in

Solved

Problem: In mobile mode, the product photo is shown very! zoomed in

Kanal100
Excursionist
14 0 4

Hi,

 

could you please help me again? I couldn't find a solution...

 

If I click on a photo of one of my products in mobile mode (on desktop mode, it works just fine and slightly zooms in), the photo is shown very much zoomed in. Also you do not have the possibility to zoom in or out; you have to look at very narrow detail of the photo.

https://www.kanal-100.com/de/products/wandbild-bagni-nirvana

 

1 Bildschirmfoto 2023-12-12 um 10.01.30.png2 Bildschirmfoto 2023-12-12 um 10.02.29.png

 

Accepted Solution (1)

BSS-Commerce
Shopify Partner
3478 465 561

This is an accepted solution.

Hi @Kanal100 ,

Please follow these steps:

Step 1: Go to Themes -> Edit code

Find file name "product-thumbnail.liquid", find this code by search "product__media-toggle quick-add-hidden"

view - 2023-12-18T133923.261.png

Step 2: Comment this code by comment tag

 {% comment %}
    <button class="product__media-toggle quick-add-hidden product__media-zoom-{{ section.settings.image_zoom }}" type="button" aria-haspopup="dialog" data-media-id="{{ media.id }}">
      <span class="visually-hidden">
        {{ 'products.product.media.open_media' | t: index: position }}
      </span>
    </button>
    {% endcomment %}

The result will be like as desktop view, you click the image and the position clicked will be zoomed in:

view - 2023-12-18T133954.756.png

I hope it helps @Kanal100 

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


Product Labels by BSS | B2B Solution & Custom Pricing


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Replies 2 (2)

BSS-Commerce
Shopify Partner
3478 465 561

This is an accepted solution.

Hi @Kanal100 ,

Please follow these steps:

Step 1: Go to Themes -> Edit code

Find file name "product-thumbnail.liquid", find this code by search "product__media-toggle quick-add-hidden"

view - 2023-12-18T133923.261.png

Step 2: Comment this code by comment tag

 {% comment %}
    <button class="product__media-toggle quick-add-hidden product__media-zoom-{{ section.settings.image_zoom }}" type="button" aria-haspopup="dialog" data-media-id="{{ media.id }}">
      <span class="visually-hidden">
        {{ 'products.product.media.open_media' | t: index: position }}
      </span>
    </button>
    {% endcomment %}

The result will be like as desktop view, you click the image and the position clicked will be zoomed in:

view - 2023-12-18T133954.756.png

I hope it helps @Kanal100 

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


Product Labels by BSS | B2B Solution & Custom Pricing


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
Kanal100
Excursionist
14 0 4

That worked!

Thank you very much for your help!