Templates

You can create templates for different post types. Templates are a set of predefined blocks. For example, if you need to always use one of your blocks in each post, you can create Template for this post type.

  • Navigate to WordPress Admin > Lazy Blocks > Templates
  • Select one of the available Post Types

Then you can select Template Lock:

  • None
  • Prevent all operations – all block operations such as deleting, adding, moving will not be available
  • Prevent inserting new blocks, but allows moving existing ones

Then you can select blocks. For example, we selected Alert + Shortcode blocks and locked template:

Template for Posts
New created Post

Add Content when template locked

If you need to add blocks on each page and don’t let users move and remove them, but you still need to work with post content, you can use default Lazy Blocks block named Free Content

Broken templates

If you remove blocks, that used in templates, you will need to remove it from these templates also, manually.

If you keep removed blocks in the template, you will not be able to create new posts, you will see the only blank screen.

Removed blocks highlighted with red color
Was this page helpful?