Title: Block Pattern Builder
Author: Justin Tadlock
Published: <strong>2020 年 4 月 3 日</strong>
Last modified: 2020 年 8 月 14 日

---

搜索插件

![](https://ps.w.org/block-pattern-builder/assets/banner-772x250.png?rev=2275158)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/block-pattern-builder/assets/icon-256x256.png?rev=2275158)

# Block Pattern Builder

 作者：[Justin Tadlock](https://profiles.wordpress.org/greenshady/)

[下载](https://downloads.wordpress.org/plugin/block-pattern-builder.1.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/block-pattern-builder/#description)
 * [评价](https://cn.wordpress.org/plugins/block-pattern-builder/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/block-pattern-builder/#developers)

 [支持](https://wordpress.org/support/plugin/block-pattern-builder/)

## 描述

Block Pattern Builder is a simple plugin that allows end-users to create custom 
block patterns within the WordPress plugin directory. The plugin currently **requires
Gutenberg 7.8+**. Block patterns will be a part of core WordPress in the future.
For now, Gutenberg is a hard requirement.

More information on block patterns can be found via the following links:

 * [Gutenberg 7.8 Adds Patterns API and Continues Interface Cleanup](https://wptavern.com/gutenberg-7-8-adds-patterns-api-and-continues-interface-cleanup)
 * [Block Patterns Will Change Everything](https://wptavern.com/block-patterns-will-change-everything)

### How to Use the Plugin

After installing and activating the plugin, you should see a new “Block Patterns”
menu item in your WordPress admin. From that point, you can create a new pattern
just like you would any post or page. The process is the same.

The idea with patterns is to create a reusable pattern or section of blocks that
you will use later. Once you publish a pattern, it will be available within the 
pattern library.

Now, go to any post or page. Click on the pattern icon. At the time of writing, 
that icon is in the top right corner of the block editor, but this will surely change
in future versions of Gutenberg and WordPress. After clicking on the icon, you should
see your custom pattern in the pattern library/list. Click on it. It will be inserted
into your post.

As of version 1.1.0, users can create a block pattern directly from the editor. 
Click on the “more options” button (ellipsis icon) in the editor toolbar with at
least one block selected. Then, click the “Add to Block Patterns” option.

## 屏幕截图

[⌊Block Patterns management screen.⌉⌊Block Patterns management screen.⌉[

Block Patterns management screen.

[⌊Creating a custom block pattern.⌉⌊Creating a custom block pattern.⌉[

Creating a custom block pattern.

[⌊Inserting a block pattern into the post editor.⌉⌊Inserting a block pattern into
the post editor.⌉[

Inserting a block pattern into the post editor.

## 常见问题

### Why was this plugin created?

I thought it would be fun to build block patterns from the admin instead of writing
code for them.

### Block pattern is invalid. What should I do?

If this happens, something is off in the pattern. See if you can resolve the issue.
Currently, block patterns are very early in development, so there is a distinct 
possibility of breakage.

### Can I use this to build patterns for my theme?

Yes, certainly. You can build the patterns via the admin. Then, go to the code editor
and copy the code version of the pattern. Then, register in your theme’s `functions.
php` via the `register_pattern()` function. This way, you can ship your custom patterns
directly to your theme users.

## 评价

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

### 󠀁[Very helpful](https://wordpress.org/support/topic/very-helpful-1159/)󠁿

 [Martin Sauter](https://profiles.wordpress.org/martinsauter/) 2022 年 1 月 11 日

This is a clean and simple, but very helpful plugin to create your own block patterns.
If it had the option to manage block pattern categories as well, I’d consider even
a 5 star rating… 😉

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

### 󠀁[Time saver making it super easy for clients](https://wordpress.org/support/topic/time-saver-making-it-super-easy-for-clients/)󠁿

 [Richard B](https://profiles.wordpress.org/richard-b/) 2021 年 5 月 19 日

Thanks Justin!! This plugin is just what was needed. Makes it super easy to save
a pattern (template) and just reuse over and over on new pages. Love it!

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

### 󠀁[Great time saver](https://wordpress.org/support/topic/great-time-saver-107/)󠁿

 [pete3](https://profiles.wordpress.org/pete3/) 2020 年 12 月 23 日

The Block Pattern Builder allows me to quickly use blocks over and over again, which
is really essential to create content quickly and consistently. The only issue I
have right now is that the patterns in the bottom of my list of 13 patterns are 
not listed when I search for them in the Gutenberg editor. If I have two patterns
with “h2” in their name, it only shows the to one, for example. Not sure what is
causing that? I hope a future version allows to change the saved pattern and apply
the changes site wide (structure and design, not the content obviously). That would
make maintenance so much more efficient. But I think it’s a WordPress limitation
at the moment, rather than a plugin limitation.

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

### 󠀁[Great Plugin, But](https://wordpress.org/support/topic/great-plugin-but-157/)󠁿

 [LarryWEB](https://profiles.wordpress.org/lhe2012/) 2020 年 12 月 3 日 2 回复

I REALLY like this plugin, but it is conflicting with Gutenberg Plugin v9.1.1 When
inserting Block > choosing Browse All > then selecting Patterns …… It gets an error
The editor has encountered an unexpected error. Just respond that you got this ….
then it goes back to 5 Stars! Thanks, looking forward to using. ————————————- Due
to “Bianca (@bianca205)”, putting this to 5 Stars … I hope she will forward this
to the right people.

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

### 󠀁[Useful addition that needs some work](https://wordpress.org/support/topic/useful-addition-that-needs-some-work/)󠁿

 [Webtaurus](https://profiles.wordpress.org/and_or/) 2020 年 11 月 26 日

Thanks Justin for creating such a useful nifty plugin. I does not seem perfect in
the way of finding and inserting the patterns in posts, but I am sure you will solve
that.

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

### 󠀁[Very Good](https://wordpress.org/support/topic/very-good-5204/)󠁿

 [aungzinphyo](https://profiles.wordpress.org/aungzinphyo/) 2020 年 10 月 25 日

dsadsdsa

 [ 阅读所有13条评价 ](https://wordpress.org/support/plugin/block-pattern-builder/reviews/)

## 贡献者及开发者

「Block Pattern Builder」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Justin Tadlock ](https://profiles.wordpress.org/greenshady/)

「Block Pattern Builder」插件已被翻译至 3 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/block-pattern-builder/contributors)
为本插件所做的贡献。

[帮助将「Block Pattern Builder」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/block-pattern-builder)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/block-pattern-builder/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/block-pattern-builder/)，或通过[RSS](https://plugins.trac.wordpress.org/log/block-pattern-builder/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/block-pattern-builder/)。

## 更新日志

The change log is located in the `changelog.md` file in the plugin folder. You may
also [view the change log](https://github.com/justintadlock/block-pattern-builder/blob/master/changelog.md)
online.

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **600+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.5.18**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/block-pattern-builder/) 、
   [English (US)](https://wordpress.org/plugins/block-pattern-builder/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/block-pattern-builder/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/block-pattern-builder/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/block-pattern-builder)
 * 标签
 * [block-editor](https://cn.wordpress.org/plugins/tags/block-editor/)
 *  [高级视图](https://cn.wordpress.org/plugins/block-pattern-builder/advanced/)

## 评级

 4.9 星（最高 5 星）。

 *  [  12 条 5 星评价     ](https://wordpress.org/support/plugin/block-pattern-builder/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/block-pattern-builder/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/block-pattern-builder/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/block-pattern-builder/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/block-pattern-builder/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/block-pattern-builder/reviews/)

## 贡献者

 *   [ Justin Tadlock ](https://profiles.wordpress.org/greenshady/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/block-pattern-builder/)