Title: Magic Block
Author: willdelphia
Published: <strong>2018 年 12 月 13 日</strong>
Last modified: 2021 年 4 月 18 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/magic-block/assets/icon.svg?rev=1993285)

# Magic Block

 由 [willdelphia](https://profiles.wordpress.org/willdelphia/) 開發

[下載](https://downloads.wordpress.org/plugin/magic-block.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/magic-block/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/magic-block/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/magic-block/#developers)

 [技術支援](https://wordpress.org/support/plugin/magic-block/)

## 外掛說明

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.

## 螢幕擷圖

[⌊You can nest magic blocks inside each other to build complex layouts.⌉⌊You can
nest magic blocks inside each other to build complex layouts.⌉[

You can nest magic blocks inside each other to build complex layouts.

[⌊Custom attributes supported⌉⌊Custom attributes supported⌉[

Custom attributes supported

## 適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

 *   Magic Block

## 使用者評論

![](https://secure.gravatar.com/avatar/774703aad74fb0c2d7cb3f75438ad5bd862c44c1eb0bb3f21ac25126bdb0a3ca?
s=60&d=retro&r=g)

### 󠀁[please, don’t abandon this excellent plugin](https://wordpress.org/support/topic/please-dont-abandon-this-excellent-plugin/)󠁿

 [wrumwrum](https://profiles.wordpress.org/wrumwrum/) 2022 年 5 月 11 日

you said, that as we have a group block now, we might don’t need to use this plugin.
Unfortunately group block stinks, it ads some inner divs which makes it unusable
for a lot of stuff, for example grid or flex container. Your plugin is just perfect.
It should be THE FIRST Gutenberg block to be released, it’s such a timesaver and
pleasure to work with. I can pay for this, but please, don’t abandon it.

![](https://secure.gravatar.com/avatar/a38623728cc919b6e0506821c0ae5a5c39c55a4512d24e942b867ebbe579ac8c?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excelent-plugin-447/)󠁿

 [](https://profiles.wordpress.org/cristobal-barrientos/) 2021 年 10 月 24 日

Wonderful plugin, just hope this project keeps updated! thank you so much!

![](https://secure.gravatar.com/avatar/95d6b44a1cb93680675554e3389ef45e916d63ef2dc6bd6d03d516bfa0e30ad7?
s=60&d=retro&r=g)

### 󠀁[Magia blanca](https://wordpress.org/support/topic/magia-blanca-2/)󠁿

 [Francisco](https://profiles.wordpress.org/fmarconi/) 2021 年 9 月 13 日

White Magic, This should be in the very core of Gutenberg. I used it to implement
Keen Slider Because there’s no way to get rid of the additional annoying nested 
wrappers in default columns or groups blocks.

![](https://secure.gravatar.com/avatar/e87d2ba5b2989d9b3687fd6bee8908746738e70efbe8952f0a1cda6722f9fefe?
s=60&d=retro&r=g)

### 󠀁[How did I ever create websites without this!](https://wordpress.org/support/topic/how-did-i-create-website-without-this/)󠁿

 [trishahdee](https://profiles.wordpress.org/trishahdee/) 2021 年 6 月 26 日

I am so very happy you created this wonderful tool! It is so needed for anyone who
is tired of creating custom templates for pages. Thank you!

![](https://secure.gravatar.com/avatar/ebafc9cb5ae26d6cc74a7aa4d8e1a063622fb664a28537910f3ced5638db8916?
s=60&d=retro&r=g)

### 󠀁[Good !!!](https://wordpress.org/support/topic/good-6539/)󠁿

 [jcasalsd](https://profiles.wordpress.org/jcasalsd/) 2021 年 6 月 18 日

Keep going !!! Congratulations

![](https://secure.gravatar.com/avatar/d2f5a0762d219e289160288e922f5cb2044c011d85f9599af2650d970e905724?
s=60&d=retro&r=g)

### 󠀁[Absolutely Perfect!](https://wordpress.org/support/topic/absolutely-perfect-95/)󠁿

 [xenolito](https://profiles.wordpress.org/xenolito/) 2021 年 5 月 26 日

This plugin is just perfect for a full control of gutenberg’s based layouts. It 
just fills a very important functionality that gutenberg lacks and it should come
built in with WordPress. Great job.

 [ 閱讀全部 10 則使用者評論 ](https://wordpress.org/support/plugin/magic-block/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Magic Block〉的開發相關工作。

參與者

 *   [ willdelphia ](https://profiles.wordpress.org/willdelphia/)

〈Magic Block〉外掛目前已有 2 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/magic-block/contributors)
為這個外掛做出的貢獻。

[將〈Magic Block〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/magic-block)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/magic-block/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/magic-block/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/magic-block/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/magic-block/)。

## 中繼資料

 *  版本 **1.3.0**
 *  最後更新 **5 年前**
 *  啟用安裝數 **300+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.7.15**
 *  PHP 版本需求 ** 5.2.4 或更新版本 **
 *  語言
 * [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/magic-block/)、[English (US)](https://wordpress.org/plugins/magic-block/)、
   及 [Russian](https://ru.wordpress.org/plugins/magic-block/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/magic-block)
 * 標籤:
 * [block](https://tw.wordpress.org/plugins/tags/block/)[div](https://tw.wordpress.org/plugins/tags/div/)
 *  [進階檢視](https://tw.wordpress.org/plugins/magic-block/advanced/)

## 評分

 4.9 星，滿分為 5 星

 *  [  10 個 5 星使用者評論     ](https://wordpress.org/support/plugin/magic-block/reviews/?filter=5)
 *  [  1 個 4 星使用者評論     ](https://wordpress.org/support/plugin/magic-block/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/magic-block/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/magic-block/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/magic-block/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/magic-block/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/magic-block/reviews/)

## 參與者

 *   [ willdelphia ](https://profiles.wordpress.org/willdelphia/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/magic-block/)