Title: Block Areas
Author: Felix Arntz
Published: <strong>2019 年 7 月 4 日</strong>
Last modified: 2019 年 8 月 20 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/block-areas.svg)

# Block Areas

 作者：[Felix Arntz](https://profiles.wordpress.org/flixos90/)

[下载](https://downloads.wordpress.org/plugin/block-areas.0.2.0.zip)

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

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

## 描述

Introduces a simple method for defining block areas to use the block editor outside
of the post content.

This is an experimental plugin that explores basic usage of Gutenberg blocks outside
of the content bubble, on a sitewide level.

In the long term it will likely eliminate itself once WordPress core and Gutenberg
will have completed the next phase of advancing to the sitewide level. The plugin
exists as a baseline to have an easy way for experimenting with similar functionality
already today.

#### Usage

After activating the plugin, you can create and edit block areas under _Appearance
> Block Areas_. There should be two block areas already, `header` and `footer`.

Block areas are identified by their unique slug. Since `header` and `footer` are
expected to exist, make sure not to delete them.

In order to print a specific block area, for example in your theme, use `block_areas()-
>render( $slug )` (e.g. `block_areas()->render( 'header' )`).

You can also explicitly add theme support, specifying which block area slugs your
theme relies on (e.g. `add_theme_support( 'block-areas', 'header', 'footer' )`).

## 屏幕截图

[⌊Block areas admin screen⌉⌊Block areas admin screen⌉[

Block areas admin screen

## 安装

 1. Upload the entire `block-areas` folder to the `/wp-content/plugins/` directory 
    or download it through the WordPress backend.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 常见问题

  Where should I submit my support request?

For regular support requests, please use the [wordpress.org support forums](https://wordpress.org/support/plugin/block-areas).
If you have a technical issue with the plugin where you already have more insight
on how to fix it, you can also [open an issue on Github instead](https://github.com/wprig/block-areas/issues).

  How can I contribute to the plugin?

If you have some ideas to improve the plugin or to solve a bug, feel free to raise
an issue or submit a pull request in the [Github repository for the plugin](https://github.com/wprig/block-areas).
Please stick to the [contributing guidelines](https://github.com/wprig/block-areas/blob/master/CONTRIBUTING.md).

You can also contribute to the plugin by translating it. Simply visit [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/block-areas)
to get started.

## 评价

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

### 󠀁[Simple & Powerful](https://wordpress.org/support/topic/simple-powerful-21/)󠁿

 [Paul Bystrzan](https://profiles.wordpress.org/inkm/) 2019 年 12 月 12 日

I totally agree with @markhowellsmead – it’s a real pleasure to use Your solution.
Hope we’ll be able to work with it as core WordPress functionality soon.

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

### 󠀁[Very simple yet very powerful](https://wordpress.org/support/topic/very-simple-yet-very-powerful/)󠁿

 [Mark Howells-Mead](https://profiles.wordpress.org/markhowellsmead/) 2019 年 10
月 5 日

Great idea and reliable plugin, which we use to allow our clients to edit areas 
using Gutenberg outside of the main content area.

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

### 󠀁[Easy To Use](https://wordpress.org/support/topic/easy-to-use-2700/)󠁿

 [dbm44](https://profiles.wordpress.org/dbm44/) 2019 年 8 月 22 日

Works great! Simple to use and delivers block areas in page templates where I need
them

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

## 贡献者及开发者

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

贡献者

 *   [ Felix Arntz ](https://profiles.wordpress.org/flixos90/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.2.0

 * Allow themes to explicitly add `block-areas` theme support and specify which 
   areas they use.

#### 0.1.0

 * Initial release

## 额外信息

 *  版本 **0.2.0**
 *  最后更新：**7 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.2.26**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/block-areas/)
 * 标签
 * [blocks](https://cn.wordpress.org/plugins/tags/blocks/)[editor](https://cn.wordpress.org/plugins/tags/editor/)
   [gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)[theming](https://cn.wordpress.org/plugins/tags/theming/)
 *  [高级视图](https://cn.wordpress.org/plugins/block-areas/advanced/)

## 评级

 5 星（最高 5 星）。

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

[您的评价](https://wordpress.org/support/plugin/block-areas/reviews/#new-post)

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

## 贡献者

 *   [ Felix Arntz ](https://profiles.wordpress.org/flixos90/)

## 支持

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

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