Description
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
Screenshots
Blocks
This plugin provides 1 block.
- Snippets
Installation
-
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.
Reviews
Contributors & Developers
“Blocksolid Snippets” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Blocksolid Snippets” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.1.3
*Set the __nextHasNoMarginBottom prop to true for back-end controls – 14 October 2024*
1.1.2
WP 6.7 throws warning: Warning: A props object containing a “key” prop is being spread into JSX – removed keys – 26 September 2024
1.1.1
WP 6.5 puts the editor in iframes in certain circumstances – now using ‘enqueue_block_assets’ instead of ‘admin_enqueue_scripts’. Added ‘custom-fields’ to snippets post type support to allow use of Options > Preferences > Panels > Custom fields switch. This is required to stop in-iframe editing which in turn allows a non modal popup classic editor panel – 01 September 2024
1.1.0
React code updated, bumped up to WordPress 6.5 – 18 March 2024
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