Responsive Block Controls

Description

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, 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.

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.
  • Theme spacing defaults are detected when possible.

Accessibility and localization

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

Screenshots

  • Columns block with desktop column and gap controls in the responsive layout panel.
  • Columns block tablet preview with inherited spacing and per-breakpoint column controls.
  • Columns block mobile preview with a single-column layout and mobile gap overrides.
  • Custom-width Columns layout with responsive gap controls on the parent Columns block.
  • Child Column block with responsive width and order controls for custom-width Columns layouts.
  • Query Loop Post Template tablet preview with responsive columns, gap controls, and Masonry availability.
  • Gallery block tablet preview with responsive columns and inherited gap settings.
  • Spacer block with tablet and mobile height overrides, including editor resizing.

Installation

  1. Install Responsive Block Controls from the WordPress plugin directory or upload the plugin folder to /wp-content/plugins/.
  2. Activate the plugin.
  3. Select a supported native block and open the responsive panel in the block sidebar.

FAQ

Is this a page builder or a block collection?

No. The plugin extends supported native Gutenberg blocks. It does not replace core blocks with custom layout blocks.

Which blocks are supported?

Responsive controls are currently available for Columns, individual Column blocks in custom-width mode, Query Loop grids, Gallery, and Spacer. New block support can be added over time without changing the core positioning of the plugin.

Will my content break if I uninstall the plugin?

No. Settings are stored as extra block attributes. If the plugin is removed, WordPress ignores those attributes and the blocks fall back to their normal core behavior.

Does it work with patterns and reusable blocks?

Yes. Because settings are stored on native blocks, they travel with patterns, synced patterns, reusable blocks, and template parts.

Can I use it with any theme?

The plugin is designed to work with themes that use normal WordPress block markup and spacing styles. It keeps the active theme responsible for the base layout and only applies responsive overrides where supported.

Does Masonry work everywhere?

No. Masonry is an optional Query Loop enhancement for supported fixed-column grid layouts. It is not the main purpose of the plugin and is only enabled when the current Query Loop layout can support it safely.

Can I use rem or em values for gaps?

Yes. Gap controls support px, rem, and em values, while older saved px values remain compatible.

Can Spacer have different heights on tablet and mobile?

Yes. Keep the native desktop height in the Spacer block settings, then use the responsive height panel for tablet and mobile overrides.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Responsive Block Controls” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.7.2

  • Improved responsive Spacer height validation in the editor so unsupported values are ignored and supported values stay within safe limits.
  • Improved responsive CSS value sanitization on the front end.

1.7.1

  • Renamed the public plugin name to Responsive Block Controls while keeping the existing plugin slug and responsive-columns text domain.
  • Reworked the plugin directory description, screenshots, and positioning to focus on responsive controls for native Gutenberg blocks.
  • Hardened responsive CSS value handling for gap and minimum-width controls.
  • Improved runtime style handling so sanitized responsive values can override legacy saved plugin styles safely.
  • Updated project metadata and release copy for a maintenance-focused polish release.

1.7.0

  • Added responsive height controls and live tablet/mobile resizing for native Spacer blocks.
  • Improved deactivation-safe behavior so supported native blocks remain valid.

1.6.0

  • Added responsive column and gap controls for native Gallery blocks.
  • Improved Gallery editor previews for tablet and mobile breakpoints.

1.5.0

  • Added custom-width mode for native Columns layouts.
  • Added per-column responsive width and order controls for asymmetric layouts.

1.4.0

  • Added Query Loop grid support, including manual columns, auto-fit minimum width, and Masonry guardrails.

1.3.0

  • Added the shared breakpoint control panel, responsive gap inheritance, and bundled editor translations.

1.2.0

  • Improved CSS value sanitization, theme gap detection, editor preview targeting, and Masonry stability.

1.1.0

  • Reworked frontend HTML handling to use WP_HTML_Tag_Processor and improved asset loading fallbacks.

1.0.0

  • Initial public release.