[WordPress] 外掛分享: Responsive Block Controls

首頁 › 外掛目錄 › Responsive Block Controls
60+
安裝啟用
—
尚無評分
32 天前
最後更新
—
問題解決
WordPress 6.4+ PHP 7.4+ v1.9.0 上架:2025-05-13

內容簡介

Responsive Block Controls 外掛為支援的原生 Gutenberg 區塊新增實用的響應式控制功能。使用者可以輕鬆調整佈局、間距、欄寬等,而無需更換核心區塊或使用頁面建構器。

【主要功能】
• 為支援的原生 Gutenberg 區塊新增響應式控制
• 調整欄位數量、間距及自訂寬度
• 保留原生區塊及可重用區塊的結構
• 從編輯器側邊欄調整媒體與文本佈局
• 移除外掛不會影響已儲存內容結構

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.9.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Responsive Block Controls」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Responsive Block Controls adds practical responsive controls to supported native Gutenberg blocks. Adjust layouts, spacing, column widths, Query Loop grids, Gallery columns, and Spacer heights without replacing core blocks or moving content into a page builder.
Native WordPress blocks are fast, portable, and theme-friendly, but responsive layout tweaks often still require custom CSS, duplicated blocks, or a full page builder. This plugin keeps your content in native blocks and adds the missing breakpoint controls directly in the block inspector.
Why use it?

Add responsive controls to supported native Gutenberg blocks.
Keep existing core blocks, patterns, synced patterns, reusable blocks, and template parts.
Avoid extra builder markup, shortcodes, and content lock-in.
Adjust columns, gaps, custom widths, order, Media & Text layouts and media width, Cover minimum height, Query Loop grids, Gallery layouts, and Spacer heights from the editor sidebar.
Preserve desktop behavior and theme spacing defaults unless you override them.
Remove the plugin without breaking the saved content structure.

Supported blocks
Support is added block by block. In this version, responsive controls are available for:

core/columns — responsive column counts, gap controls, and custom-width mode.
core/column — per-breakpoint width and order controls when custom-width mode is enabled on the parent Columns block.
core/post-template inside Query Loop — manual column controls, auto-fit minimum width, responsive gaps, and optional Masonry for supported fixed-column grids.
core/gallery — responsive columns and gap controls while keeping the native Gallery block.
core/spacer — tablet and mobile height overrides while keeping the native desktop Spacer height.
core/media-text — side-by-side or stacked layouts, stacked order, and side-by-side media width across four non-desktop breakpoints.
core/cover — opt-in minimum height across four non-desktop breakpoints, with inherited values and scoped Reset.

How it works
The plugin stores settings as native block attributes and renders a small set of CSS classes and custom properties. It does not register replacement layout blocks and does not wrap your content in custom frontend markup.
Your theme stays in control of the base layout. Responsive Block Controls only applies supported responsive values at the configured breakpoints. If the plugin is removed, WordPress ignores the extra attributes and the blocks fall back to their normal core behavior.
Editor experience

Responsive controls appear only when the selected block is supported.
Breakpoint tabs follow desktop, tablet, and mobile editing workflows.
Smaller breakpoints inherit from larger breakpoints until you override them.
Gap controls support px, rem, and em values with predictable reset behavior.
Custom-width Columns layouts support per-column width and simple order controls.
Query Loop grids support manual columns, auto-fit minimum width, and Masonry guidance where available.
Spacer height can be customized for tablet and mobile previews.
Media & Text can inherit, stay side by side, or stack with media first or text first at each non-desktop breakpoint.
Media & Text can set media width for plugin-managed Side by side layouts while retaining native desktop width and saved widths in Stacked mode.
Cover can set a minimum height in px, rem, or em at each non-desktop breakpoint. Content can grow beyond that minimum.
Theme spacing defaults are detected when possible.
Reset actions are scoped to the active setting and breakpoint, so inherited values and unrelated responsive settings are preserved.

WordPress 7.1 responsive styles
WordPress 7.1 introduces responsive values for standard block supports. Responsive Block Controls keeps those native values and its own four-breakpoint values separate:

Leave Advanced 4 breakpoints disabled to keep the block’s native WordPress behavior.
Enable Advanced 4 breakpoints when you need separate tablet landscape, tablet portrait, mobile landscape, and mobile portrait values.
If saved block settings overlap, the editor shows a conflict warning. Advanced 4 breakpoints take priority for supported columns and gaps; for Cover, the plugin controls minimum height and temporarily overrides the aspect ratio on managed breakpoints.
Switching back to WordPress responsive styles is reversible: plugin settings and native WordPress settings are preserved rather than migrated or deleted.
Native responsive typography, padding, colors, and other non-overlapping block supports continue to work.
Cover already has native responsive minimum-height controls in WordPress 7.1. The plugin adds four explicit breakpoint ranges. On a managed range, its minimum height takes priority and pauses the native aspect ratio; turning Advanced mode off restores WordPress styling without deleting values.

Accessibility and localization

Inspector controls are keyboard accessible and labeled for screen readers.
Strings are translation-ready via the responsive-columns text domain.

延伸相關外掛

文章
Filter
Mastodon