跳到内容

Featured Image Zoom

v2.1.0

cubecolour · 2014年1月14日 上架

Add a [zoom] shortcode to display a zoomable featured image.

正在使用
900+
评分
4.5 / 5
累计下载
3 万
最近更新
2025年6月23日
11 条评价需要 WordPress 4.7+已测试到 6.8.13

贡献者

截图

Featured Image at Large size shown on the page.
Featured Image at Large size shown on the page.
Zoomed Full Size Featured image.
Zoomed Full Size Featured image.

Add the [zoom] shortcode to a page, post or custom post-type post. If the post has a featured image it will displayed on the page, and when you move the cursor over the image, the image will be magnified with the image viewport remains constrained to the dimensions of the original image.

on a mobile/touch device the image will also be zoomable, but as there is no hover state this is achieved by means of a pinch & zoom action.

On my site you can see a demo of the plugin.

Usage:

Ensure that your post/page has a featured image defined.

Use a [zoom] shortcode to your page.

Some optional shortcode parameters can also be used.

=size=
The large image is used by default for the unzoomed image. Use the size parameter to use a different defined image size.

eg ‘[zoom size=thumbnail]’

=zoomsize=
The full image is used for the zoomed overlay. This can be changed using the zoomsize shortcode parameter.

eg ‘[zoom zoomsize=large]’

The image size definitions used for the the unzoomed and zoomed images should have the same aspect ratio and cropping.

=zoomin=
This can be used to tweak the level of zoom. The value must be a positive integer. The default is 6 so if the zoom level results in too much magnification on hover, try a lower value.

eg ‘[zoom zoomin=2]’

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums