Magento how to disable image zoom

Magento how to disable image zoom

July 1, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento how to disable image zoom

Disabling Product Image Zoom in Magento

In Magento, the product image zoom feature is enabled by default to provide a better user experience. However, there may be instances where you want to disable this functionality for specific products or across your entire store. This guide will walk you through two common methods to achieve this.

Method 1: Disabling Zoom for Individual Products

If you want to disable the image zoom for a particular product, you can do so from the admin panel:

  1. Log in to your Magento admin dashboard.
  2. Navigate to Catalog > Products.
  3. Find and select the product whose image zoom you want to disable.
  4. In the edit page, scroll down to the Images and Videos section.
  5. Click on the Actions dropdown menu for the main image (usually labeled as “Image”).
  6. Select Delete.
  7. Save your changes.

By deleting the main image, Magento will not be able to zoom in on it. Note that this method only affects the selected product; you’ll need to repeat these steps for each individual product where you want to disable the zoom feature.

Method 2: Disabling Zoom Globally

For a more permanent solution across your entire store, you can modify the Magento core files. This approach is recommended if you’re comfortable with coding and have access to your server’s file system or FTP account.

  1. Locate the Magento directory on your server.
  2. Navigate to the following path: app/design/frontend/{yourtheme}/etc/view.xml.
  3. Open the view.xml file in a text editor or code editor like Visual Studio Code.
  4. Find the <catalog_product_view> section within the XML.

Your view.xml may look something like this (the relevant lines are highlighted):

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Component/Config/etc/config.xsd">
  <catalog_product_view>
    <referenceBlock name="product.info.bundle.options">
      <arguments>
        <argument name="template" xsi:type="string">Magento_Bundle::product/view/options.phtml</argument>
      </arguments>
    </referenceBlock>
  </catalog_product_view>
</config>
  1. To disable the image zoom entirely, you need to remove the block that handles the zoom functionality. Comment out or delete the following line:
<block class="Magento_Catalog\Block\Product\View\Gallery" template="Magento_Theme::html/popup.gallery.phtml" ttlvisibility="0">
  <arguments>
    <argument name="image" xsi:type="array">
      <item name="data" xsi:type="array">
        <item name="id" xsi:type="number">123</item>
        <item name="file" xsi:type="string">/magentotime/magento2/magento2/fileadmin/_processed_/_thumbs/max-800x600--40--pizza.jpg</item>
      </item>
    </argument>
  </arguments>
</block>
  1. Save the view.xml file and clear your Magento cache to apply the changes.
  2. The image zoom feature should now be disabled across all products in your store.

Remember, modifying core files directly is generally not recommended by Magento itself. This approach carries risks of conflicts with future updates. It’s always a good idea to create a backup before making any changes and to keep an eye on Magento’s update notes for potential compatibility issues.

For more detailed information on Magento’s file structure and layout processing, I recommend checking out the official documentation at https://laravelcompany.com/magento-documentation/file-structure-overview.

Catalog Database Themes Admin

Our network