WordPress Reusable Blocks are awesome! They’re one of my favorite features included in the release of WordPress 5.0 – also referred to as Gutenberg – which was mentioned in our 9 Questions About Gutenberg. There were some stellar new features included in this release of WordPress that can be very helpful for those wanting to do more within their WordPress pages, but Reusable Blocks are easily the most powerful.
What Are Reusable Blocks?
Reusable Blocks are exactly that — blocks that can be reused!
There are two primary ways to use a Reusable Block:
- As a template block that you can use on a regular basis with your pages.
- Aa a repeatable block that will change globally when edited.
You have to be a little careful when using Reusable Blocks as a template, but using Reusable Blocks as repeatable blocks is a very powerful way to manage content on your website.
Let’s take a look at how to create and use Reusable Blocks within your website.
Don’t forget to create a website backup before you start.
Create Your Reusable Block
Reusable Blocks are completely customizable. So you won’t find the option to add Reusable Blocks until you create your first block.
To create your first Reusable Block, use any block content — paragraph text, a bullet-point list of links, custom HTML, a widget, or anything else you populate in a WordPress block.
Select the block that you would like to convert into a Reusable Block and “Add to Reusable Blocks”:
Now you’ll be able to find your block with all the other blocks within WordPress:
Next, let’s use our newly created Reusable Block titled “Content to Use” (lame title, I know).
How to Use Your Reusable Blocks
Begin adding your Reusable Block like any other:
As you can see in the screenshot above, this is the second Reusable Block we’ve created, it’s a Paragraph block, and you can also see it includes a preview.
Now with it added, there are a few different things we can do:
Using WordPress Reusable Blocks Like Templates
You can also “Convert to Regular Block”:
This is how you can use Reusable Blocks as a “template” for your content. This action takes the content within the Reusable Block and converts it to a normal block unique to the page or post you are using it in. However, if the block is not converted to a Regular Block and changes are made to the content within the block, the Reusable Block being used as a “template” will also be changed.
Behold the Power of (Repeatable) Reusable Blocks
Finally, the most powerful feature of Reusable Blocks.
In our example below, we are using a bullet list that was created in a Reusable Block:
Let’s add a fourth item to that list — but it’s also been added to three other pages. By editing this one Reusable Block, it will update on all of the pages.
Pull up the three-dot menu on any reusable block and click the “Manage Reusable Blocks” link.
This will take you to the reusable blocks screen, where you will choose the reusable block you want to edit.
From there, make your changes, and don’t forget to update:
Now when we navigate to the page where this particular Reusable Block has been used, we can see the content has been updated:
WordPress Reusable Blocks are a new and powerful feature that should be talked about a lot more. This is easily one of WordPress’s most powerful new features since Custom Post Types were introduced.
In the end, this new feature will be a great way to help developers build websites that are easier for users to manage their own content and a really easy way for users to make their website more dynamic without any additional development.
Here at Valet, we have already started leveraging this new feature to help our clients make their websites more awesome — and everyone loves it.