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

Melonpan Block – Container

描述

DemoDocumentationGitHub

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 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.

螢幕截圖

  • 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.

評價

2019年4月9日 1 reply
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.
2019年3月26日 1 reply
I tried many plugins, but Melonpan is Nice and clear blocks, without thousand of useless options. Melonpan block work as describe, Great Work!
閱讀全部6個評價

貢獻者及開發者

“Melonpan Block – Container” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Melonpan Block – Container 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

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.