2

I want to remove zoom functionality from product image on product view page, but I am not sure how to do so.
It will be a great help if anyone can guide me to achieve this.
I have tried below code in app/design/frontend/Custom/theme/etc/view.xml

<vars module="Magento_Catalog">
        <var name="magnifier">
            <var name="enabled">false</var> <!-- Turn on/off magnifier (true/false) -->
        </var>
    </vars>

But it is not working.

1 Answer 1

1

Change below code in view.xml under <var name="gallery">:

<var name="allowfullscreen">false</var>
  • clear cache
5
  • Sorry, it is not working for me. Commented Nov 30, 2016 at 8:41
  • Have you clear cache? Please make this change in active theme. Commented Nov 30, 2016 at 9:49
  • Yes, I have cleared the cache. Commented Nov 30, 2016 at 10:15
  • Remove var and pub/static/fronted folders and deploy content again. Commented Nov 30, 2016 at 10:45
  • Tried, but didn't work. Commented Nov 30, 2016 at 13:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.