[WordPress] 外掛分享: Block Pattern Builder

首頁外掛目錄 › Block Pattern Builder
WordPress 外掛 Block Pattern Builder 的封面圖片
600+
安裝啟用
★★★★
4.9/5 分(13 則評價)
2043 天前
最後更新
問題解決
WordPress 5.0+ PHP 5.6+ v1.1.0 上架:2020-04-02

內容簡介

Block Pattern Builder 是一個簡單的外掛程式,允許使用者在 WordPress 外掛目錄中建立自訂區塊樣式。目前此外掛程式需要使用 Gutenberg 7.8+。未來,區塊樣式將會成為 WordPress 核心的一部份,但現階段必須使用 Gutenberg。

您可以透過以下連結來了解更多有關區塊樣式的資訊:

Gutenberg 7.8 Adds Patterns API and Continues Interface Cleanup
Block Patterns Will Change Everything

如何使用此外掛程式

安裝並啟用此外掛程式後,您應該在 WordPress 管理介面中看到一個新的 "Block Patterns" 選單項目。從那一點開始,您可以像建立任何文章或頁面一樣建立新模式。步驟相同。

模式的概念是建立可重複使用的樣式或區塊區塊。發布模式後,它會出現在模式庫中,供您使用。

現在,前往任何文章或頁面。點擊模式圖示。在撰寫本文時,該圖示位於區塊編輯器的右上角,但在未來的 Gutenberg 和 WordPress 版本中,這將會變更。點擊圖示後,您應該在模式庫/清單中看到您的自訂模式,然後按一下。它將被插入到您的文章中。

從版本 1.1.0 開始,使用者可以直接從編輯器建立區塊樣式。在至少選擇一個區塊的編輯器工具列中,按一下 "更多選項" 按鈕(省略號圖示),然後點擊 "新增至區塊樣式" 選項。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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
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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon