Hi, I am looking to remove this zoom feature on the product listing images. How can I remove this? I am using Dawn theme
-
Go to Online Store->Theme->Edit code
-
Asset->/section-main-product.css->paste below code at the bottom of the file.
.product__media-toggle {display: none !important;}
.product__modal-opener .product__media-icon {display: none !important;}
Thanks!
Great it worked! Thanks so much.
You are a saver. Thank you very much!!
Just wanted to say a massive thank you for this as well!
Hi,
This is a really fantastic resolution. I have just tried this on my site and it indeed does remove the zoom on the product page. But it is now causing issue on the home page with the ratio of the banner image.
Is anyone else seeing this?
THIS WORKED. THANK YOU!!!
Thanks very much!! It worked!
Hi that code worked great! Thank you! But now you can’t click on the pictures at all?? I am trying to achieve no zoom on pictures but click them where they change at the main picture.
Hi. I also have the Dawn theme and was looking to remove the zoom feature. I used one of the solutions here. It fixed that problem, but now all my pages are replicated after the footer. How would I fix this?
Thank you, it works!
Hi @_hwi , @Heidi2k20 , @outpost , @Beth2384
I propose a different solution than Dmwwebartisan, which is, in my opinion, cleaner and also doesn’t disable anything you wouldn’t want.
Here are the steps:
- In your Shopify Admin, go to O****nline Store > Themes > Actions > Edit Code
- Open the product-thumbnail.liquid file under Snippets
- Go to line 76 where it says
{%- liquid
case media.media_type
when 'video' or 'external_video'
render 'icon-play'
when 'model'
render 'icon-3d-model'
else
render 'icon-zoom'
endcase
-%}
- Change that to
{% comment %}
{%- liquid
case media.media_type
when 'video' or 'external_video'
render 'icon-play'
when 'model'
render 'icon-3d-model'
else
render 'icon-zoom'
endcase
-%}
{% endcomment %}
{%- if media.media_type == 'video' or media.media_type == 'external_video' -%}
{%- liquid
render 'icon-play'
-%}
{%- endif -%}
{%- if media.media_type == 'model' -%}
{%- liquid
render 'icon-3d-model'
-%}
{%- endif -%}
-
This code block does the same as before for video and 3D models, but not for normal product images. The comment at the beginning is the original code, if you would want to revert the function back to its original way.
-
Go to line 111 where it says
- Change that to
{% comment %}
{% endcomment %}
{%- if media.media_type == 'video' or media.media_type == 'external_video' -%}
{%- endif -%}
{%- if media.media_type == 'model' -%}
{%- endif -%}
- This code block does the same as before for video and 3D models, but not for normal product images. The comment at the beginning is the original code, if you would want to revert the function back to its original way.
I hope my solution is satisfactory.
Thank you soo much for that and by the way check out my online store clouddropstore. myshopify. com
Great job! Worked like a charm
works for sense theme. thanks a lot!
@dmwwebartisan I added a product image slider and it removed the zoom feature, would you know the code to add the zoom feature back?
Please remove the following code from your assets/ section-main-product.css file.
.product__media-toggle {display: none !important;}
.product__modal-opener .product__media-icon {display: none !important;}
Thanks!