跳到内容

CTC Masonry Gallery

v2.8.0

UjW0L · 2021年5月21日 上架

Create refined masonry galleries in Gutenberg with hover enlargement, custom shadows, and a full-screen image viewer.

正在使用
1,000+
评分
5.0 / 5
累计下载
1.9 万
最近更新
2026年10月9日
3 条评价需要 WordPress 5.7.2+已测试到 7.1.5PHP 7.4.9+

贡献者

截图

Refined Gutenberg gallery editor with a live masonry preview and collection details.
Refined Gutenberg gallery editor with a live masonry preview and collection details.
Grouped Layout, Interaction, and Appearance settings alongside the gallery preview.
Grouped Layout, Interaction, and Appearance settings alongside the gallery preview.
A published masonry gallery with rounded image corners and balanced spacing.
A published masonry gallery with rounded image corners and balanced spacing.
The full-screen image viewer with thumbnails, captions, navigation, zoom, and slideshow controls.
The full-screen image viewer with thumbnails, captions, navigation, zoom, and slideshow controls.
The image-selection screen for starting a new collection.
The image-selection screen for starting a new collection.

CTC Masonry Gallery creates flowing image collections in the WordPress Gutenberg editor. Version 2.8.0 brings a refined editor, a polished image viewer, and more reliable image loading while preserving the existing gallery features and saved block markup.

Key Features

  • Masonry layout: Images retain their proportions and arrange automatically as the gallery resizes.
  • Refined editor: A welcoming image-selection state, a live gallery preview, an image count, and a clear Edit gallery action.
  • Grouped settings: Layout, Interaction, and Appearance panels keep every existing control easy to find.
  • Image viewer: Browse thumbnails, navigate to the first or last image, zoom in or out, and play or pause a slideshow.
  • Keyboard access: Open the viewer with Enter or Space; use Left/Right to browse, Up/Down to zoom, and Escape to close. Tab stays within the viewer and focus returns to the selected image on close.
  • Hover enlargement: Optionally enlarge images on hover. Hover enlargement and the image viewer remain mutually exclusive.
  • Custom shadows: Adjust shadow size and color, including transparency.
  • Flexible spacing: Set image width from 1–100% and the gutter from 1–50 pixels.
  • Reliable loading: Cached, slow, and failed image loads no longer keep the entire gallery hidden.
  • Existing galleries preserved: No migration is needed; the original masonry and viewer libraries remain in the plugin.

What’s Next

Explore my other WordPress projects:

Development

`sh

npm ci
npm run build
npm run lint:js
npm run lint:css
`

The src/ directory contains the editable source. Commit the generated build/ assets with source changes so the plugin can be installed without Node.js. The webpack adapter in tooling/ exposes the classes from the existing js-masonry and ctc-gallery-viewer packages; both dependencies and all existing npm scripts are retained.

Plums

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

导航

说明

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

© 2026 Plums