Description
Infovarious Image Hover Zoom makes screenshots and photos in your posts easier to read. When a visitor moves the mouse over an image, the full-size image appears next to the cursor and follows it. Move the mouse away and the popup disappears.
Features:
- Shows the original, full-size image (the size suffix such as
-300x200is removed automatically, or the image’s own link is used). - If the original image is not larger than the displayed one, the popup is shown at a configurable zoom (default 1.5x).
- Works with lazy-loaded images, including
data-srcbased lazy-loading plugins. - Mouse devices only. Nothing runs on phones and tablets.
- No jQuery and no external requests. The popup image is only loaded when the visitor hovers over an image.
- Small images such as icons are ignored (the minimum width is configurable).
- The popup stays inside the browser window and never changes the page layout, so it does not affect Cumulative Layout Shift.
- Choose which images are affected with a CSS selector.
Installation
- Upload the
infovarious-image-hover-zoomfolder to the/wp-content/plugins/directory, or install the plugin from the Plugins screen. - Activate the plugin.
- Optional: open Settings > Infovarious Image Hover Zoom to adjust the target images, zoom and distance.
FAQ
-
Which pages does it work on?
-
On single posts and pages (any singular view). To use it on other views, return true from the
infovarious_image_hover_zoom_enabledfilter. -
Some images do not show a popup.
-
Only images that match the “Target images” selector are used. The default is
.entry-content img:not(.emoji):not(.wp-smiley), which covers images inside the post content. If your theme prints other images outside of.entry-content(for example, previous/next post thumbnails), add a selector for them in Settings > Infovarious Image Hover Zoom, separated by a comma. Example:main img.attachment-60x60. -
Images narrower than a certain width do not react.
-
Images narrower than “Ignore small images” (default 50px) are ignored so icons do not react. Lower the value to include smaller thumbnails.
-
Does it work on touch devices?
-
No. The popup depends on mouse hover, so it is disabled on phones and tablets.
-
Does it affect SEO or page speed?
-
The popup is created in the browser only when a visitor hovers over an image. Nothing is added to the page HTML, and the full-size image is not loaded until the hover happens.
-
The full-size image does not appear.
-
The plugin looks for the original file by removing the WordPress size suffix from the image URL, or by using the image’s own link if it points to an image file. If the original file was deleted or renamed, the popup cannot load it.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Infovarious Image Hover Zoom” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Infovarious Image Hover Zoom” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- First release.