Blocksolid Snippets

外掛說明

If your website shows the same content on multiple pages it’s best to just keep one copy of this content and to edit that if you need to make site-wide changes.

The Blocksolid Snippets plugin lets you manage these “snippets” of content using a dedicated custom post type.

In the Classic Editor Snippets can be conjured using a simple shortcode such as:

[blocksolid_snippet post_title=”My Snippet”]

If you use Gutenberg our included Snippets block allows you to choose your snippet from a list and live-preview it within your page.

Your snippet can contain formatted text, images, videos, [shortcodes], HTML, gutenberg blocks, any valid WordPress content.

If you are using our separate Blocksolid plugin as a page builder and Gutenberg overlay the Blocksolid Snippets plugin also integrates well with this.

Blocksolid Snippets Features

  • Snippets of code are contained in a custom post type that can then be called via a Gutenberg block or a simple shortcode

螢幕擷圖

  • /assets/screenshots/screenshot-1.png
  • /assets/screenshots/screenshot-2.png
  • /assets/screenshots/screenshot-3.png
  • /assets/screenshots/screenshot-4.png

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Snippets

安裝方式

  • Install the plugin using the WordPress ‘Add New plugin’ functionality and activate.

  • Once activated a new Snippets menu item will appear in your WordPress menu to allow you to create new snippets of content.

  • Give each of your snippets a unique title e.g. “My Snippet”.

  • You can then call your snippet via a short code like [blocksolid_snippet post_title=”My Snippet”]

  • if you use the built-in Gutenberg block editor for your website you can use the plugin’s bespoke ‘Snippets’ block to place the snippet within your content.

  • The Snippets block give you a live preview of your snippet within the Gutenberg editor.

使用者評論

2023 年 11 月 14 日
This plugin is the best solution i have found to be able to use gutenberg content on the description of category pages (wordpress templates). step 1: edit archive template to add add description details on archive pages. step 2: create a block snippet and feel the magic. thanks for writting this plugin!
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Blocksolid Snippets〉的開發相關工作。

參與者

將〈Blocksolid Snippets〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0.9

Removed deprecated third parameter from shortcode – 24 October 2023

1.0.8

Replaced deprecated function get_page_by_title() – 10 March 2023

1.0.7

Small change to allow Snippets to respect switching off of Blocksolid overlay – 21 January 2022

1.0.6

Small change to give Snippets its own custom icon – 10 January 2022

1.0.5

Streamlined JS code and added Snippets icon to block – 7 January 2022

1.0.4

Fixed block rendering in admin and improved in front-end – 27 September 2021

1.0.3

Better compatibility with MemberPress – 22 September 2021

1.0.2

Tested with WordPress 5.8 – 20 July 2021

1.0.1

Snippets blocks lists snippets alphabetically – 03 June 2021

1.0

Release Date – 02 June 2021

First release