Code blocks
Create a code block from the Add Block panel of a page, add it to pages, and manage it in Design → Blocks.
A code block is a block that you create for your site in Block Studio. After you save a code block, it shows in the Add Block panel with the other blocks.
Create a code block from a page
Open the Add Block panel
In the block editor of a page, click Add Block (the +). See The block editor.
Click New Block
Under Custom, click New Block. Block Studio opens.
Make the block
Describe the block and click Generate block, or click Start from a blank block. See Create a code block.
Save and add the block
Click Save & add to page. Basker saves the block, goes back to the page, and adds the block where you opened the panel.
The New Block card shows only when your role can create code blocks. It does not show when you add a block inside another block.
If your role cannot publish themes, the button is Save draft. Basker saves a draft and does not add the block to the page. A person with permission to publish themes must save the block before pages can use it.
Add a saved code block to a page
The Custom group of the Add Block panel shows the saved and published code blocks of your site. Click a code block to add it to the page, the same as other blocks. The panel shows only the code blocks that Block Studio made for a Website Builder theme.
Manage code blocks
Open Design → Blocks to see, edit, and create the code blocks of your site. Select a block and click Edit in Block Studio to change it. When you save the change, each page that uses the block shows the change.
For the parts of Block Studio, saving, AI credits, and permissions, see Block Studio.