Welcome back, everyone. This is Christopher with InMotion Hosting.
In today's video I'm going to be showing you how to create reusable blocks in the Gutenberg editor,
also known as the WordPress block editor. So, the advantage of creating reusable blocks is that you
can basically duplicate your effort more easily. And the nice thing about the repeatable blocks
especially is that you can update them in one place and they'll update all across your site.
So these are really good for things like callout boxes, or some people call them transactional
boxes, and windows on your site whether you have a certain campaign for marketing purposes or
something that you'll need to have on multiple pages, something you might be promoting,
and if you have to make a change you don't want to have to update it all across your site. You can
update it in one place so that's probably the main benefit of reusable blocks and all just saving you
time and effort. So I'm going to go ahead here and open up my little "hello world" post
and we're going to create a column block here
and I'm going to show you how we can turn it into a reusable block.
So I'm just going to go ahead and create the column block first,
of course you have to create the content first and then save it so I'm going to put an image here
this is a nice 50/50 column, and let's see if I've got a picture right here, that's good,
gonna combine an image with some text. So let's see who loves Beagles most.
Take our quiz and find out typical marketing type of call out box here,
a quiz and so here I've created this it could be for an email campaign or something
that you're doing and you've just created it here, it didn't take a lot of effort to create that,
but why have to repeat that whole process over and over again? So if you carefully see here
if you click on the the content block you'll see that it gives you different options depending on
which content you're clicking on. So you'll see here we can create a reusable block that's what
we're going to do but you notice we've only highlighted this paragraph text here so if
we create that reusable block it's only going to create a paragraph, so you have to carefully
make sure you've selected the entire column block and then add that to reusable blocks.
Let's call it the "beagle quiz block", all right, so now save that, and now that has been saved
to your reusable blocks, so just for an experiment here let's go ahead and let's update this.
You can see,
watch as we create it let's just create another post,
test post, and when we go to create a new block you'll see here "beagle quiz block" is available
as a reusable block which is incredibly convenient, and now let's actually publish that.
Now you'll see now, if Ii click on the little drop down menu here for this reusable block,
WordPress of course knows that's a reusable block so you can click "manage reusable blocks"
and you'll see there's the block right here, all of the blocks that you create
for as reusable blocks will be available here.
And of course if you click one like any post or page,
you can actually edit the content and so let's say we wanted to put an exclamation point here.
We update that so this was in the the reusable block itself
if we go back to our "hello world" post where we originally created that block you'll see
that exclamation point is there, so this updates dynamically across the site. And if for any reason
you wanted to change one of these on a particular page, of course you you would always have that
option as well as to just change the change the content by converting it to a to a normal block.
So that's how you can create and actually manage multiple reusable blocks in multiple places,
of course if you have any questions or comments about that go ahead and
feel free to leave us a comment below, and of course like and subscribe if you'd like to see
more videos that are going to be coming out soon. Thanks again see you next time.