Using the blocks field
How to use the blocks field: Add, edit, duplicate etc.
Block UI overview
Add block
To add a new block, when…
…no block is active:
- Click/tap the
Add
button above the blocks field. - Then select a block type.
The new block is inserted at the end.
…at the end of the blocks field:
- Click/tap the
+
button below the blocks field. - Then select a block type.
The new block is inserted at the end.
…inside an active block
- Click/tap the
+
button from the context menu - Then select a block type.
The new block is inserted after the active block.
To add a new block after or before the currently active block,
- Click/tap the
…
button - Then select
Insert before
orInsert after
.
Edit block
Some blocks can be edited inline, i.e. without opening the drawer (for example, the text block). Other blocks can only be edited with when the drawer is open. Sometimes, some fields in a block can be edited inline, while other fields in a block are only accessible in the drawer.
Blocks that can be edited inline
- Put the cursor at the position where you want to make edits.
- Start typing.
Blocks or fields in blocks that need editing in the drawer
- Select the block to edit.
- Click/tap the
Edit
icon.
With some block types (image, video…), you can open the drawer by double-clicking the block.
Copy & paste
You can paste content from documents and websites into a blocks field, and Kirby will try to convert them into blocks automatically. You can also select and copy multiple blocks between pages.
Remove one or multiple blocks
To remove the selected block(s), click/tap the trash icon or use the keyboard shortcut Meta + Backspace
Change block type
- Click/tap the
…
button - Select
Change type
from the dropdown menu. - Select the new block type.
Change block position
To change the position of the active block,
- Click/tap and hold the button with the hand icon.
- Drag the block to its new position.
Since 4.0.0
Or use the following keyboard shortcuts:
To move the block up: Ctrl + Shift + arrow up
To move the block down: Ctrl + Shift + arrow down
Hide block
- Select the block to hide.
- Click/tap the
…
button from the context menu. - Select
Hide
from the dropdown menu.
Duplicate block
- Select the block to duplicate.
- Click/tap the
…
button from the context menu. - Select
Duplicate
from the dropdown menu.
The duplicated block is inserted after the selected block.
Copy block(s)
Single block
- Select the block to copy.
- Click/tap the
…
button from the context menu. - Select
Copy
from the dropdown menu.
Multiple blocks
- Select the blocks to copy.
- Click/tap the
Copy
button from the context menu.
Paste blocks
When no block is selected
- Click/tap the three dots next to the
Add
button above the field. - Select
Paste
. - Insert the copied blocks.
When a block is selected
- Click/tap the
…
button from the context menu. - Select
Paste after
.
Since 4.0.0
Split & merge blocks
To split an existing block into two blocks,
- Move the cursor to the position where you want to split the blocks,
- Split with keyboard shortcut
Meta + Enter
or selectSplit
from the dropdown menu.
To merge blocks
- Select the blocks to merge.
- Merge with keyboard shortcut
Meta + J
or click/tap theMerge
button.
Copy all blocks
- Click/tap the
…
button above the blocks field. - Select
Copy all
.
Delete all blocks
- Click/tap the
…
button above the blocks field. - Select
Delete all
.
Since 4.0.0
Overview keyboard shortcuts
Enhanced keyboard shortcuts:
Shortcut | Description |
---|---|
Ctrl + Backspace | Remove selected block |
Ctrl + arrow up/down | Move focus up/down |
Ctrl + Shift + arrow up/down | Move blocks up/down |
Ctrl + Alt + arrow up/down | Extend selection up/down |
Cmd/Ctrl + Enter | Split blocks |
Ctrl + J | Merge blocks |
Cmd/Ctrl + V | Import blocks/layouts from your clipboard |