What Are WordPress Blocks? Everything You Need To Know…
If you’re using WordPress version 5.0 or later, you may be wondering about ‘blocks’. (Note: Learn more about the new WordPress editor: a.k.a. ‘Gutenberg’.) So, what are WordPress blocks? What do they do? And how do you use them?
👉 Blocks are the new way in which WordPress organizes content inside your blog posts and/or pages.
If you go to your WordPress dashboard (provided you’re on WordPress 5.0), and proceed to create a new post, you’ll see a new content editing panel that’s block-based instead of what was previously there — one large content field with standard controls for text formatting.
Exhibit (a) — the new editor:
Compared with the previous look of the content editor, that’s a huge upgrade.
Exhibit (b) — the previous editor:
With the new block-based editor, the editing experience is distraction-free and much more streamlined. This is because you only see the main canvas and no other unnecessary elements.
How Do I Use Blocks?
When you begin working on a new blog post or page, each piece of content you want to include — such as a paragraph of text or an image — will be converted into a block.
Think of a block as a neat wrapper around any given piece of content on the page. However, the fact that it’s indeed a block doesn’t change anything concerning the content itself. A paragraph of text is still a paragraph of text.
Using blocks is very intuitive. As soon as you begin working on a new post or page, WordPress will invite you to start writing text or choose a block type.
When you’re done typing a paragraph, just press enter on your keyboard and WordPress will transition you to the next block. And so on.
To add a block other than a paragraph of text, click on the ‘+’ icon, which you’ll find in the upper-left corner of the block editor (see the screenshot above).
Depending on the type of block you choose, you’ll be able to customize it in a number of ways — all to make it look exactly how you want. Here’s what you can do with the heading block, for example:
Introducing this block wrapper has a range of benefits. Chief among them is the fact that you can rearrange blocks much more easily than you could with the previous editor.
Each block has controls for moving it one spot up or down, and also supports drag and drop when you click and hold onto the icon in the middle of those two arrows. See here:
Previously, to move content around within a blog post, you needed to cut and paste it in place. This often resulted in various formatting issues (depending on the text editor you were using), or whole sections of content getting lost whenever you erased your clipboard by accident. The new blocks don’t suffer from those issues, and are much more maneuverable.
Do Blocks Change the Way Readers See Content on My Site?
No. The sole fact of blocks being there doesn’t impact the way in which your visitors see the content of your posts or pages.
Blocks are invisible to your visitors. They’re only a tool for you — you get to use them when working on posts or pages inside the WordPress dashboard. On the front end of your site, blocks are completely transparent.
What WordPress Blocks Are Available?
Apart from paragraphs of text, you can also use a range of other blocks.
Here are the blocks included in WordPress 5.0 out of the box:
Additionally, we’re already seeing quite a number of third-party WordPress plugins that come with their own custom blocks, and which extend the standard capabilities of the editor. The blocks you can find in those plugins include the likes of testimonials, pricing tables, WooCommerce products, social media buttons, contact forms and other useful elements.
What Are the Benefits of Using Blocks?
Many of the following benefits we already discussed above. So, just to recap:
- First of all, blocks are portable. Blocks make it super-easy to insert and rearrange any type of content.
- Blocks are also much less prone to various copy-and-paste issues, especially when copying content over from a Word doc or some other source.
- Lastly, the block editor itself provides a much more consistent experience in terms of what your content looks like in the editor, versus what it looks like to your readers.
That being said, you’ll get the most out of blocks if you use a WordPress theme that has editor styles that are compatible with the block editor. That way, the design you see in the block editor — when working on a post — is the same as what readers see on the front end of your site.
This isn’t something that impacts your readers’ experience, but it is rather a nice bonus for you when you’re working on content. It just keeps things consistent and more predictable. Here’s an example of how the new default theme in WordPress, Twenty Nineteen, handles editor styling:
What if I Don’t Want to Deal with Blocks?
The way blocks work in WordPress is very transparent, so to speak, and they don’t require any conscious attention from you.
In other words, if you just want to write your posts normally, you can. Simply ignore blocks altogether.
Here’s what I mean. When creating a new post, you’ll quickly notice that working with the new block-based editor is rather painless. You can write your paragraphs normally, press enter when you’re done with a line, type ‘-‘ if you want to start a list, drag and drop an image from your desktop, copy and paste a URL to create a link, and so on. Basically, business as usual. Blocks will sort of happen in the background with no interaction required from you.
You really don’t have to pay much attention to blocks if you don’t want to. Keep calm and continue writing content as if nothing ever happened.
What if I *Really* Don’t Want to Deal with Blocks?
If you want to get the old editor back, although it’s not a particularly recommended approach, you still can. Install a plugin aptly named Classic Editor.
After activating it, go into Settings → Writing and select your preferred settings:
- If you select ‘Allow users to switch editors: Yes‘, then you’ll be able to decide whether you want to use the new block editor or the old classic editor on a per-post basis.
What’s Next with WordPress Blocks?
Overall, the new WordPress blocks make it much easier to use various types of content in a blog post. This was not that straightforward to do in the previous versions of WordPress.
Take tables, for example. Before WordPress 5.0, adding a table to a blog post was a nightmare. The only sensible way of doing it was to get your hands dirty with raw HTML code for tables, which is very easy to mess up. With the block editor, tables are just yet another block that you can easily add to a post and configure with a couple of clicks.
With the way WordPress blocks are evolving, and the speed in which it’s happening, it’s safe to say we’ll soon be able to take any piece of content imaginable and add it to a blog post or page through the block-based editor.
I really encourage you to give WordPress blocks a chance and experiment with the new editor when creating content for your blog. See how easy it is, even if all you’re doing is just typing, adding new paragraphs, images or YouTube embeds.
If you want to learn more WordPress basics, check out these posts:
- What Is WordPress and When to Use It?
- How to Install WordPress
- How to Choose the Ideal WordPress Theme