Do you want to add an Amazon-like magnifying zoom for images in WordPress?
Adding a zoom feature will allow users to see details that they would not see in a normal-sized image.
In this article, we’ll show you how to easily add magnifying zoom for images in WordPress.
Why Add a Magnifying Zoom for Images?
Adding a magnifying zoom feature on your WordPress website will allow visitors to view the intricate details of the images clearly.
If you have a photography website, then adding a magnifying feature will allow users to zoom in on your photographs to view the finer details.
Similarly, if you run an online store, then your customers will be able to zoom in on product images.
Many big eCommerce websites already use magnifying zoom for product images. It allows customers to examine the product and creates a better shopping experience in your store.
That being said, we’ll show you how to easily add a magnifying zoom for images in WordPress using two different methods. You can use the links below to jump to the method you prefer.
If you’d prefer written instructions, just keep reading.
Method 1: How to Add a Magnifying Zoom For Images in WordPress with Envira Gallery (Recommended)
Envira Gallery is the best gallery plugin for WordPress. You can use it to easily create beautiful image galleries for your WordPress website. It also comes with a Zoom Addon, which lets you add zoom functionality to your gallery images.
Other powerful Envira features include a drag and drop builder, pre-made gallery themes, lightbox popups, image compression, image protection, and more.
Note: There is a free version of Envira Gallery that you can use. However, you need to upgrade to the premium plugin’s ‘Plus’ plan to access the Zoom Addon.
Upon activation, you need to go to the Envira Gallery » Settings page and enter your license key. You can find the license key in your Envira Gallery account area.
After that, click the ‘Verify Key’ button.
Next, you need to go to Envira Gallery » Addons. From here, scroll down to find the Zoom Addon and click on the ‘Install’ button.
Once the Zoom Addon is installed, you also need to activate it by toggling the switch.
The next step is to add a new gallery. To do that, go to Envira Gallery » Add New from the WordPress dashboard.
From here, you can enter a name for your gallery and click the ‘Select Files from Your Computer’ button to upload images to your gallery.
You can also click the ‘Select Files from Other Sources’ button to add images from the WordPress media library to your gallery.
Once you’ve uploaded images to your gallery, you can rearrange them by dragging and dropping the thumbnails into place.
There are also other options for customizing your image gallery. For example, you can select a gallery layout, add image titles and alt text, enable the gallery lightbox, show image captions, edit image dimensions, and more.
For more details, see our guide on how to create responsive image galleries with Envira.
Configure Image Zoom Settings
To add a magnifying zoom to your gallery images, click on the ‘Zoom’ tab. Then, check the box to enable zoom functionality.
Once zoom functionality is enabled, the settings for adding zoom to your images will appear.
You can configure settings like zoom on hover, zoom effect, zoom type, zoom window position, zoom window size, tint color, and more.
When you’re happy with the zoom settings, click the ‘Publish’ button to store your changes and make this gallery available.
Embedding Your Image Gallery with Magnifying Zoom
Now that your gallery is ready, you can add it directly to any page or post in WordPress.
From the WordPress content editor, simply click the ‘+’ button to add the Envira Gallery block. Then, click on the dropdown menu inside of the Envira Gallery block to choose which gallery to display.
Next, you’ll see a preview of your image gallery in the WordPress block editor. If you’re happy with how it looks, you can publish the post or page.
Now you can visit your website to see the magnifying zoom feature in action.
Envira Gallery is a great plugin for adding zoom functionality to photography websites. But, it also works perfectly for online stores.
To learn more, see our guide on how to create a WooCommerce product image gallery.
Method 2: How to Add a Magnifying Zoom For Images in WordPress with WP Image Zoom
We will be using the free version in this tutorial, but if you want more customization options, you may want to check out WP Image Zoom Pro.
Upon activation, you need to head over to the WP Image Zoom » Zoom Settings page from the WordPress admin sidebar.
Next, you need to configure the zoom effect settings by switching to the ‘Zoom Settings’ tab and choosing a lens shape that you want to use.
You can choose from circle, square, and zoom window lens shapes. You can even choose a ‘No Lens’ (⨯) option if you don’t want to use a shape for magnifying effect.
After choosing your preferred lens, you need to scroll down to the next step where you can preview an image with the selected lens to see how it works. The plugin has a preview image that you can use to test your changes.
Next, you need to switch to the ‘General’ tab.
From here, you can select a cursor type, set an animation effect, enable the zoom on mouse hover or mouse click, and define a zoom level.
If you want even more options, some of the features are only available for the pro version of the WP Image Zoom plugin.
After making your choices accordingly, simply go to the ‘Lens’ tab from the top.
You can now configure settings like lens size, lens color, lens border options, and more if you selected the ‘circle’ or ‘square’ lens in Step 1.
If you selected the Zoom Window Lens, then you need to switch to the ‘Zoom Window’ configuration tab.
From here, you can change the width and height of the zoom window, positioning, distance from the main image, border colors, and more.
Next, you need to simply click the ‘Save Changes’ to store your settings.
After that, all you have to do is configure a few general settings.
Configure General Plugin Settings
Next, you need to switch to the General Settings tab under the plugin settings.
From here, you can now enable features like zoom on WooCommerce product images, thumbnails, mobile devices, attachment pages, product category pages, and more.
All you need to do is simply check the boxes next to these options.
You can also remove the lightbox effect, so users can smoothly zoom images.
However, you would need the Pro version of the plugin for this feature.
If you are not going to remove the lightbox for images, then you need to scroll down to the ‘Enable inside a Lightbox’ option and check the box next to it.
Note: You can see supported lightboxes to make sure that the zoom works fine inside a lightbox on your site.
Once you are done adjusting the settings, don’t forget to click on the ‘Save Changes’ button to store your settings.
Magnifying zoom will now be enabled for WooCommerce products.
You can go visit your online store to check our zoom feature.
However, if you want to enable zoom for images on WordPress posts and pages, you need to follow the step below.
Enable Magnifying Zoom for Images in Block Editor
By default, the magnifying zoom is not enabled for images on your posts and pages. You need to do it manually after adding an image to your content.
First, you need to open a post you want to edit in the block editor.
Next, you need to upload an image to that post from the media library or your computer.
Once you do that, simply click on the image to open up its’ Block Settings panel on the right corner of the screen.
From here, simply go to the ‘Styles’ tab and click on the ‘With Zoom’ button to apply magnifying zoom to your image.
After that, simply click the ‘Update’ or ‘Publish’ button at the top to store your settings.
The zoom feature will look like this on your site:
Note: You will need to repeat this step each time you want to add the zoom effect to an individual image.
We recommend using high-quality images for the zoom feature to look great. High-quality images are normally larger in file size and take longer to load which will affect your website speed and performance.
To solve this issue, you need to optimize your images for the web before uploading them to WordPress.
We hope this article helped you learn how to add magnifying zoom for images in WordPress. You may also want to see our guide on how to optimize images for search engines and our top picks for the best image compression plugins.