Registers a container block. It has settings for element, ID, classname, style, and any other attribute.
As of April 2026, Magic Block is a WordPress div plugin with 300 active installations and a 4.9/5 rating from 11 reviews. It has been downloaded 5.2K+ times in total. Requires WordPress 5.0+ and PHP 5.2.4+. Available on WordPress.org since 2018. Last updated 4 years ago — may have compatibility concerns. Top alternative: Equal Height Columns.
Magic Block registers a container block with the block editor. This block has settings for element (div, section, etc), ID, classname, inline style, and any other attribute (including data-*, and aria-*) via a custom attributes section.
Magic Block is designed for people who want full control over post HTML structure, or wish to use the editor to create complex layouts such as Flexbox, CSS Grid, Bootstrap, etc…
This block does not add any CSS styles that you, as a developer, do not provide. Rather, it allows you to easily contain other blocks in parent elements with an arbitrary ID or Class. You may then easily target these container elements by ID or Class in your theme’s stylesheets or through CSS plugins. For smaller customizations there is an inline style field which maps…
| WordPress | 5.0+ requiredTested up to 5.7.15 |
| PHP | 5.2.4+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.