Home » WordPress Tutorials » Gutenberg » Gutenberg Tutorial: Using the WordPress Block Library

Gutenberg Tutorial: Using the WordPress Block Library

Gutenberg

What you need to know:

The WordPress Block Library contains all blocks that you can use while working in Gutenberg. To insert a block, drag it from the Block Library and drop it in your document. In addition to regular Blocks, the Block Library also supports Block Patterns and Reusable Blocks. Last but not least, the block selection in the Block Library can be expanded via third-party plugins.

WordPress differs from other content management systems in that it uses blocks to manage content. There are various types of blocks available and all of them are housed in the Block Library. In this article, we’ll show you how to use the Block Library. In addition, we’ll share the various ways in which you can customize it.

Table of Contents:

 

What Is Gutenberg?

Gutenberg, also known as the WordPress Block Editor, is the successor to the classic WordPress WYSIWYG editor. Unlike the classic editor, Gutenberg uses blocks to encapsulate all content. If you are new to Gutenberg, we recommend going through our tutorials on the basics of Gutenberg and the WordPress Block Editor interface.

 

How Can I Access Gutenberg?

You can access Gutenberg by creating or editing a post, page or widget.

Tip:

Don’t have a website yet? Sign up for our free hosting plan or for one of our premium WordPress hosting packages and install WordPress with just a few click.

 

Gutenberg Blocks, Explained

Most document editors that we use can be classified as free-form text editors, meaning that you can place text anywhere in the document. Other elements, such as images or video, are embedded within the text itself. Gutenberg, on the other hand, is a block-based text editor and every piece of content is encapsulated in its own block.

The benefit of this block-based approach is that your embedded media is no longer directly tied to the written text or the other multimedia elements. Instead, every element in the document is completely independent and can be modified without negatively affecting neighboring blocks.

Tip:

We have a separate article where we list all available blocks in Gutenberg.

 

Exploring the WordPress Block Library

You can access the WordPress Block Library by pressing the “+” button in the Top Toolbar.

The main button for the WordPress Block Library is located in the Top Toolbar.
The main button for the WordPress Block Library is located in the Top Toolbar.

Once you click on the WordPress Block Library button, you will see a new panel open up on the left side of the screen. It will be divided in up to three tabs – Blocks, Patterns, and Reusable. We will explore each of these tabs in greater detail later in this tutorial.

The WordPress Block Library is divided into Blocks, Patterns, and Reusable tabs.
The WordPress Block Library is divided into Blocks, Patterns, and Reusable tabs.

By default, the WordPress Block Library lists all available blocks which may make it hard to find the block that you need. Fortunately, there is a search bar near the top of the Block Library that allows you to quickly find your desired block.

The WordPress Block Library comes with a handy search field.
The WordPress Block Library comes with a handy search field.

Another useful feature, especially for those who are just beginning to learn Gutenberg and the various blocks it has to offer, is the ability to preview what a block looks like and what its function is. To take advantage of this feature, simply hover your mouse cursor over it and the preview will appear to the right.

The WordPress Block Library can provide you with brief descriptions and previews of what the various blocks are capable of.
The WordPress Block Library can provide you with brief descriptions and previews of what the various blocks are capable of.

 

Blocks Tab

Here, we’ll explore the Blocks tab. It is the tab that is shown by default when you open the WordPress Block Library. It simply contains a list of all available Gutenberg blocks grouped by their type.

The Blocks tab lists all available Gutenberg blocks.
The Blocks tab lists all available Gutenberg blocks.

We’ll show you how to customize the Blocks tab a bit later in this tutorial. And if you are wondering what the various blocks do, you can check the article where we list all available blocks in Gutenberg and their function.

 

Patterns Tab

The Patterns tab allows you to insert patterns into your document instead of individual blocks. A block pattern is a group of blocks that go well together. While block patterns typically have very few customization options, they make up for it by having a nice layout and design from the outset.

The WordPress Block Library also allows you to insert block patterns.
The WordPress Block Library also allows you to insert block patterns.

Unlike the Blocks tab, the Patterns tab features a dropdown menu where you can select the category of block patterns that you wish to browse. Among the options, you’ll find the default block patterns that ship with WordPress, any block patterns added by your theme and plugins, and any custom block patterns that you may have created.

Tip:

Intrigued by Gutenberg’s block patterns? If so, check out our complete guide to block patterns in Gutenberg for more information on this feature.

 

Reusable Blocks Tab

The last tab that we’ll look at is called Reusable and it houses all of your reusable blocks. Unlike the other tabs, this tab is shown only when you have at least one reusable block and as such, it may be hidden.

The Reusable tab is an optional tab that is shown only when you have at least one reusable block.
The Reusable tab is an optional tab that is shown only when you have at least one reusable block.

To learn more, you can read our complete guide on reusable blocks in WordPress.

 

Inserting Blocks From the Block Library

Now that we have explored the WordPress Block Library interface, we’ll show you how to insert a block into your document. Generally speaking, there are two ways to do it.

The first method of inserting blocks from the Block Library is to drag a block from the library and drop it into your document. You will notice a blue line that appears near your mouse cursor as you are about to drop the block. The line represents the spot where the new block will be inserted.

You can drag a block from the Block Library and drop it in your document.
You can drag a block from the Block Library and drop it in your document.

Warning:

The drag-and-drop method does not work for block patterns!

The other way of inserting blocks from the Block Library simply involves clicking on the spot in your document where you wish to place your new block and then clicking on the block itself within the Block Library.

You can also click a block to insert it where your text cursor is located.
You can also click a block to insert it where your text cursor is located.

Tip:

The WordPress Block Library can also be accessed via a keyboard shortcut! Place the text cursor on an empty paragraph, type /, and then type the name of the block that you wish to use. Once your desired block is selected, press the Enter key.

 

Customizing the WordPress Block Library

Gutenberg allows you to customize the WordPress Block Library in two different ways. First, you can use the Block Manager to disable any blocks that you do not need. Doing so will make the Blocks tab less cluttered.

The Block Manager lets you disable and enable blocks on demand.
The Block Manager lets you disable and enable blocks on demand.

Warning:

Disabling a certain block will hide it not only from the Block Library but from Gutenberg as a whole. As a result, disabled blocks cannot be used at all. That said, disabling a certain block type will not affect its instances that you have already placed within your documents.

The other way in which you can customize the WordPress Block Library is by including a Most Used section in the Blocks tab. The Most Used section sits at the top of the Blocks tab and lists your six most-used blocks.

The Most Used section in the WordPress Block Library gives you fast and easy access to your favorite blocks.
The Most Used section in the WordPress Block Library gives you fast and easy access to your favorite blocks.

You can activate the Most Used section by following these steps:

  1. Click on the three-dot icon at the right edge of the Top Toolbar.
  2. Choose the Preferences option at the bottom of the list.
  3. Switch to the Blocks tab.
  4. Enable the Show most used blocks option.
The Most Used section is enabled via Gutenberg’s preferences.
The Most Used section is enabled via Gutenberg’s preferences.

Tip:

If you wish to make the WordPress Block Editor truly your own, go through our guide on customizing Gutenberg.

 

Next Steps

Now that we have gone over the WordPress Block Library, you should have a good understanding of what it is used for, how it functions, and what it looks like. Of course, in WordPress, everything can be further expanded via plugins and Gutenberg is no exception. So, if you wish to further enhance the WordPress Block Editor, you can check our list of the best plugins for Gutenberg as a whole as well as our list of the best block plugins.

Was this post helpful?

i

Relevant tags:

Create your WordPress website today!

Connect

Editor’s picks:

Gutenberg Tutorial: How to Move Blocks in WordPress

What you need to know: The WordPress Block Editor allows you to move blocks up and down the document structure in order to rearrange the content contained within those blocks. The most popular way of moving blocks is by dragging a block from one position and dropping...

Gutenberg Tutorial: Deleting a Block in WordPress

What you need to know: You can delete a block in WordPress by selecting it and pressing the Delete key on your keyboard. Alternatively, you can press the three-dot button in the Contextual Toolbar to access the Remove block option. Lastly, it is also possible to...

Gutenberg Tutorial: Using Block Patterns in WordPress

What you need to know: A block pattern in WordPress is a group of two or more regular WordPress blocks. These blocks come in a sensible layout that you wouldn’t need to modify in most cases. Instead, you just need to add your own content to the block pattern. You can...

Gutenberg Tutorial: Using WordPress Reusable Blocks

What you need to know: Gutenberg features reusable blocks that allow you to quickly insert the same content with one click. You can mark any block or block pattern as reusable. You can find your reusable block collection in the WordPress Block Library. Have you ever...



Create your WordPress website today!


Start now