Title: Melonpan Block &#8211; Container
Author: Alvaro
Published: <strong>2019 年 1 月 7 日</strong>
Last modified: 2021 年 1 月 8 日

---

搜索插件

![](https://ps.w.org/melonpan-block-container/assets/banner-772x250.png?rev=2007756)

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

![](https://ps.w.org/melonpan-block-container/assets/icon-256x256.png?rev=2007756)

# Melonpan Block – Container

 作者：[Alvaro](https://profiles.wordpress.org/melonpan/)

[下载](https://downloads.wordpress.org/plugin/melonpan-block-container.1.3.1.zip)

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

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

## 描述

[Demo](https://gutenberg-showcase.melonpan.io/melonpan-block-container) – [Documentation](https://melonpan.io/gutenberg-blocks/melonpan-block-container)–
[GitHub](https://github.com/garciaalvaro/melonpan-block-container)

Block that provides a container, with styling features, which can have other blocks
nested.

### Features

The block comes with the following settings:

 * Background image, fixed, color & opacity
 * Content align, max-width, text color
 * Border width, color & opacity
 * Shadow width, color & opacity
 * Padding top, bottom, left, right, responsive paddings

### Plugin developers

The plugin comes with a filter to register your own block based on this one. Check
the [documentation](https://melonpan.io/gutenberg-blocks/melonpan-block-container/registering-a-custom-block)
to see how to use it.

### Usage

The block can be found inside the blocks inserter menu under the _Melonpan Blocks_
category.
 Once added in the post you can edit its settings and add blocks inside(
you may even add a container).

### Credits

Screenshot background image belongs to [Charles Postiaux](https://unsplash.com/@charlpost).

## 屏幕截图

 * [[
 * Block edit panel
 * [[
 * Block options

## 安装

Installation from the WordPress admin.

 1. Log in to the WordPress admin and navigate to _Plugins > Add New_.
 2. Type _Melonpan Block – Container_ in the Search field.
 3. In the results list _Melonpan Block – Container_ plugin should appear, click **
    Install Now** button.
 4. Once it finished installing, click the _Activate_ button.
 5. That’s it, now you can go to any post where Gutenberg is enabled and start using
    the block.

## 评价

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

### 󠀁[Simple and Effective](https://wordpress.org/support/topic/simple-and-effective-1102/)󠁿

 [ZoraMC](https://profiles.wordpress.org/zoramc/) 2020 年 3 月 23 日

No nonsense product. Simple and highly usable. Loved it.

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

### 󠀁[Much better that Gutenberg group block](https://wordpress.org/support/topic/much-better-that-gutenberg-group-block/)󠁿

 [gsalmasi](https://profiles.wordpress.org/gsalmasi/) 2020 年 2 月 1 日 1 回复

Much better than Gutenberg group block. This one works as it should!

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

### 󠀁[Great!](https://wordpress.org/support/topic/great-10570/)󠁿

 [jummi1](https://profiles.wordpress.org/jummi1/) 2019 年 12 月 15 日 1 回复

This is a must!

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

### 󠀁[Great!](https://wordpress.org/support/topic/great-10135/)󠁿

 [arminehayrapetyan](https://profiles.wordpress.org/arminehayrapetyan/) 2019 年 
9 月 4 日 1 回复

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

### 󠀁[WOW! A working container block!](https://wordpress.org/support/topic/wow-a-working-container-block/)󠁿

 [whywaitwebs](https://profiles.wordpress.org/whywaitwebs/) 2019 年 4 月 9 日 1 
回复

I am super glad to have come across this. I have been searching far and wide for
the solution to what would seem a simple problem — how can I group a few elements
together? I mean, show me a website that doesn’t require this. I am not understanding
why it wasn’t included in Gutenberg to begin with, but I digress. There are a few
other Gutenberg Block plugins that claim to have container blocks, but with all 
the others I’ve tried, the container block is super laggy whenever you drag it around.
This plugin seems, at least from my experimentation so far, to have somehow avoided
that issue for the most part. Very nice. Besides that, this one is nice because 
it doesn’t come with a bunch of extra stuff I don’t want. Most block plugins load
a bunch of scripts and styles that I don’t need. I am a theme developer, so I’ve
been looking for something to just give me a way to structure the page and let me
handle the rest. Thank you very much for bringing this extremely useful plugin. 
Now I can actually make websites again.

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

### 󠀁[Seems usefull](https://wordpress.org/support/topic/seems-usefull/)󠁿

 [mariagarcia1992](https://profiles.wordpress.org/mariagarcia1992/) 2019 年 3 月
26 日 1 回复

I tried many plugins, but Melonpan is Nice and clear blocks, without thousand of
useless options. Melonpan block work as describe, Great Work!

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

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.3.1

 * Upgraded dependencies.

#### 1.3.0

 * Refactored code base.
 * Minor bug fixes.

#### 1.2.0

 * Added ButtonBlockAppender in block InnerBlocks, for future WordPress version.
 * Fixed dependencies. Use wp-block-editor instead of wp-editor if its available.
 * Cleaned TypeScript types, code and tests.

#### 1.1.1

 * Fix bug for blocks created using the hook which had default colors assigned. 
   In the colorpicker clicking clear to assign no color, saved undefined which was
   interpreted by the save function (after page reload) as the default value, thus
   throwing an incompatibility error.

#### 1.1.0

 * Improved code: Updated JS, added tests and migrated JS to Typescript.

#### 1.0.1

 * Fix bug where the color was empty but the class .mbc-has-color was still assigned.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.3.1**
 *  最后更新：**5 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 5.2 或更高版本 **
 *  已测试的最高版本为 **5.3.21**
 *  PHP 版本 ** 7.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/melonpan-block-container/)
 * 标签
 * [blocks](https://cn.wordpress.org/plugins/tags/blocks/)[container](https://cn.wordpress.org/plugins/tags/container/)
   [editor](https://cn.wordpress.org/plugins/tags/editor/)[gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)
 *  [高级视图](https://cn.wordpress.org/plugins/melonpan-block-container/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

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

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