Your Digital Commerce Experts
Nexcess Logo

Nexcess Blog

December 17, 2021

How To Use WordPress Reusable Blocks

WordPress is one of the most popular platforms for website creation due to its ease of use and wide variety of functionality it offers. Throughout its history WordPress has focused on improving the way site content is edited.

In 2018, WordPress Block Editor became the default editor. It provided a new editing experience to users. This project is known as “Gutenberg” and is available on wordpress.com as well as wordpress.org.

Do you find yourself adding the same content to different pages or posts of your site? Have you wondered if there was a faster, easier way? Sound familiar? Thankfully, WordPress has a useful feature you’ll find quite “reusable.”

Keep reading to learn about WordPress reusable blocks and how to use them.

What are WordPress Reusable Blocks?

A reusable block is a collection or combination of some content that can be saved, providing the ability to re-add it to any page or post easily. With the ability to save a snippet of content, WordPress reusable blocks save site editors a lot of time. Instead of writing the same content for multiple posts, one can add the same block to each post.

Want to encourage readers to follow you on social media sites? Create a block with some text and links to your social media handles and save it. On each new post you add to your site, this saved block can be added with a few clicks as opposed to writing and adding the same content every single time you create a new post.

Benefits of Reusable Blocks

Reusability of blocks serves as a tool to save you from repetitive, inefficient work. What’s more, you leave yourself open to making errors. Using reusable blocks prevents time consuming, tiring work. Never again have to go back and forth copying content from one post to another.

A great benefit of reusable blocks is that they are globally synchronized. Let’s say you have a survey form saved and used on multiple posts as a reusable block. At some point you decide to add another field to the form to collect additional information. You can simply edit the block saved and make changes there. All the posts using that block will automatically display its updated state, saving you from editing the survey form in each post manually.

WordPress reusable blocks can also be helpful when it comes to sponsored content. You can create a block for sponsored content, such as the sponsor's logo along with other content. When needed, you can modify the saved block to replace the logo with a different one across your site with ease.

A few other cases where reusable blocks may come in handy include:

  • Saving and reusing call-to-action sections.
  • A block of featured posts.
  • In list or tabular form.

How to Create Reusable Blocks

All blocks within the Gutenberg editor are individual content elements that can be saved individually as a reusable block. Let’s talk about how to create them.

1. While in the editor, click on add new block button.

In this example we will create a button linking to a URL, using Buttons block. This is, however, just for demonstration purposes. Same steps can be used for any other individual block you may need or use, such as paragraph, image, or list.

2. After adding the button block, assign it some text and a URL.

You can also stylize the button as needed using options available in the block toolbar.

3. Once you are done editing, click on the button with three vertical dots.

Then select “Add to Reusable blocks” from the dropdown. You will be asked to assign the block you are about to create a name which can then be used for quick identification while going through the library of available blocks.

4. Click on the save button and a Reusable block will be created.

This little popup in the left hand corner confirms that a block has been saved to the reusable blocks library.

Adding Reusable Block in Other Posts

Now that we have created a reusable block, we can add this block to a different post or page. Start by creating a new post or page or editing an existing one. There are a few ways a reusable block can be called to a post or page.

1. First is to search for the name assigned to the reusable block while adding a new block.

Alternatively, you can click on the add toggle block inserter button in the top left corner.

2. Go to the reusable blocks tab and insert the required block.

3. Click on the desired block and it will be added to the post or page you are editing.

How to Edit Reusable Blocks

One way to edit reusable blocks is by adding the block to a post and editing the block there. In the previous step, we added our custom button block to a new post. Let’s say we want to edit the URL assigned to the block.

1. Select the block and make required changes.

2. Try updating page changes.

You should be notified that changes are being made to the reusable block and any other areas of site using that same block will reflect these changes.

3. Click save and the changes made will be applied to the reusable block.

Now your edits have been saved.

Converting Reusable Blocks

Changes made to reusable blocks are reflected across your site and anywhere the block is used. This may not be an option you want to take all the time. Sometimes you may want to just edit one block. This is where you would want to convert a reusable block to a normal block.

Once you have added a reusable block to a post or page, you can select the block. You will have the option to convert a block.

Once converted, the block will no longer be a reusable block — so any changes made to it will not be applied to the rest of the reusable blocks you had set up.

Managing WordPress Reusable Blocks

WordPress enables you to access the complete library of reusable blocks. This is another way you can make changes to a saved block.

Click on toggle block inserter button and under reusable blocks, click on the Manage Reusable Blocks link.

You will be redirected to the reusable blocks library. Here you can add new blocks, edit, or delete existing ones as well as import or export blocks from one site to another.

Being able to access all available reusable blocks in one place makes it easier to manage them without having to add a block to post or page before editing. Import and export functionalities let you use blocks created on one site on a different site and vice versa.

Feel Ready To Reuse Some Blocks?

WordPress reusable blocks are a great time saver especially when dealing with a large number of posts and pages of lengthy content. However, time savers like this aren’t of much use if your site runs slowly at the frontend or is a victim of a not-so-suitable host.

You can avoid site speed problems when you’re with Nexcess Fully Managed WordPress.

Check out our fully managed WordPress hosting plans to get started today.

Related WordPress Resources

Aaron Binders