| 开发者 |
dmeijide
openvault |
|---|---|
| 更新时间 | 2026年11月26日 05:34 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
lupa CSS class and, on hover, the image zooms in on the area under the
cursor and follows it across the image. It is the same behaviour as the
WooCommerce product zoom, without depending on WooCommerce or on the theme.
<img> itself or on any block that wraps it: an
Elementor widget, a WPBakery element, a figure, a link…background-image.object-fit: cover/contain and the fixed-ratio boxes that page
builders create: it zooms into exactly the crop you see.lupa: set it in the settings, for example .lupa, .zoom.lupa by default) in its CSS class field. The image stays inside the widget.
Shortcode:
[agrse_zoom id="123"]
[agrse_zoom src="photo.jpg" large="photo-full.jpg" zoom="3" mode="lens"]
Per-image attributes: data-lupa-src, data-agencia-rse-image-zoom, data-lupa-mode,
data-lupa-lens.
JavaScript API: AgrseZoom.refresh(), AgrseZoom.destroyAll() and the
lupa:refresh event (document.dispatchEvent(new CustomEvent('lupa:refresh'))).
PHP filters: agrse_zoom_should_enqueue, agrse_zoom_config.
The plugin makes no external requests and stores no visitor data.
agencia-rse-image-zoom folder to /wp-content/plugins/.lupa class to an image or to the block that wraps it.No. It works on any image. With WooCommerce you can also apply it to the product gallery and turn off the built-in zoom to avoid a double zoom.
The one in data-lupa-src if present. Otherwise it picks the largest image in the
srcset, and if there is none, the src.
Return false from the agrse_zoom_should_enqueue filter on the pages where you
don't need it.
.lupa, .zoom.[lupa_zoom], prefixed to avoid clashes with other plugins.<img>.background-image.object-fit and object-position are respected.data-large_image.