WordPress plugin
Magic Block
Registers a container block. It has settings for element, ID, classname, style, and any other attribute.
- Active installs
- 300+
- Rating
- 4.9 / 5
- Version
- 1.3.0
- Last updated
- Apr 18, 2021
- Tested up to
- WordPress 5.7.22
- Requires
- WP 5.0 · PHP 5.2.4
Health check
Is Magic Block safe to rely on?
Our reading of the public WordPress.org data: maintenance, compatibility, ratings and support.
No update in over a year
Last updated on April 18, 2021. It may not be compatible with current WordPress or PHP, and unfixed issues are a security risk.
Not yet tested with the latest WordPress
Tested up to WordPress 5.7.22. It often still works, but check on staging first.
Highly rated by users
Rated 4.9 out of 5 from 11 ratings on WordPress.org.
Requires PHP 5.2.4 or newer
Check your hosting PHP version before installing. Modern PHP is faster and receives security fixes.
Rank tracker
Where Magic Block ranks in WordPress.org search
Its position in WordPress.org plugin search for its tags and name, refreshed weekly so you can see how its visibility changes.
| Keyword | Position | Change | Trend | Current #1 |
|---|---|---|---|---|
| block | ||||
| container block | ||||
| data attributes | ||||
| div | ||||
| html element | ||||
| magic block |
Checked against the top 100 WordPress.org search results.
Overview
What Magic Block does
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 to the “style” HTML attribute for the container element.
In the editor view, each Magic Block has a thin grey outline so you can easily see which child elements belong to it. It also provides a display of element type, ID, and classes so you can keep track of how to target them with your CSS.
As of WordPress 5.3 you might not need this plugin since the core now ships with a “Group Block” which is similar in purpose, although it has fewer options.
Description from the author's listing. Read the full listing on WordPress.org
Screenshots
Magic Block in action


FAQ
Magic Block: questions and answers
What is Magic Block?
Magic Block is a WordPress plugin by willdelphia. Registers a container block. It has settings for element, ID, classname, style, and any other attribute.
Is Magic Block free?
Magic Block is listed in the WordPress.org plugin directory, so the version there is free to download and use. Some authors also sell paid add-ons or a premium edition with more features and support.
How many websites use Magic Block?
WordPress.org reports 300+ active installations of Magic Block. That figure counts sites running the WordPress.org version and is rounded down by WordPress.org.
Is Magic Block still maintained?
Magic Block was last updated on April 18, 2021. The current version is 1.3.0. Check the changelog on WordPress.org and test updates on a staging site before applying them to a live site.
What does Magic Block require?
Magic Block requires WordPress 5.0 or newer and PHP 5.2.4 or newer. It has been tested up to WordPress 5.7.22.
Can Codefreex set up or customize Magic Block?
Yes. Codefreex installs, configures and customizes WordPress plugins including Magic Block, fixes conflicts and performance problems, and builds custom features when a plugin does not do exactly what you need. Send your site URL for a free review.
Free expert review
Need Magic Block set up, customized or fixed?
Tell us about your site and what you need this plugin to do. A senior WordPress developer replies within one business day with a plan and a quote.