One of many block options which have been added as of model 6.0 is the power to lock a block in order that its place and/or its removing may be prevented. This text will show learn how to discover and use the brand new block choice.
This tutorial makes use of WordPress 6.0 RC2 and the Twenty Twenty-two theme.
Locking a Block
The principle motive you'll lock a block is to forestall it from being moved from a selected location or from having it deleted. That is particularly useful in case you’re working with a number of content material creators or editors that may make modifications to a web page or publish.
For instance, chances are you'll need to implement the position of a graphic at first of a publish. Locking the block there'll preserve it from being moved and changed. You'll be able to see the block locked within the listing view within the screenshot under. The lock icon signifies that the block is locked.

Steps to lock a block:
- Log in to the WordPress Administrator.
- As a way to change the properties for a block, that you must be in an editor. The visible editor may be accessed within the web site editor, or with the web page/publish editor. Open the editor of your alternative. This tutorial will present a publish being edited.
- Choose a block that you just need to lock or add it web page or publish that you just’re engaged on. Right here you possibly can see the Picture block being added. Click on on the 3-dot menu to open the block choices menu.
- When the menu seems scroll down the listing then click on on Lock. You will note two lock choices that you could choose.
- Click on on the choice you need to use, or click on on Lock all. Then, click on on Apply.
- If you’re carried out along with your edits, be sure to both click on on Save Draft, Publish, or Replace.
Block locking is a part of the evolution of the complete web site enhancing system. This characteristic permits you to create your individual patterns or block combos in templates with much less danger of them being altered.
“
“