Blocks
The Blocks screen, tab by tab
UglyFields → Blocks lists your blocks as cards, in the same way as the list of groups. New block makes one. Edit opens it.
On this page
General

| Setting | What it does |
|---|---|
| Title | What people see in the block editor |
| Name | The name of its folder, so it stays as it is |
| A line about it | What it is for. Shows in the list of blocks. Optional |
| Icon | Next to its name in the block editor |
| Active | Off: the editor does not offer the block and the site shows nothing in its place. Its files and fields stay |
| Field groups | The groups attached to it, with the number of fields of each, and Add a field group for this block |
More options

| Section | Settings |
|---|---|
| In the + menu | Where it is listed: the category (Site default, or Design, Text, Media, Widgets, Theme). Words to find it: words that find the block when someone searches in the + menu, separated by commas |
| Tools of the editor | What the editor can change without opening the fields: Alignment (wide, full width), Colors (background, text), Spacing (margin, padding), Text size, Text alignment, Border (color, width, corners), Shadow, Minimum height, An anchor (a link to the block), An extra CSS class. They are applied to the box around the block |
| A box around the block | The file is wrapped in a <div> that carries what the tools set. Off: your file draws its own and calls get_block_wrapper_attributes() |
| Looks Pro | Versions of the block that the editor picks from its toolbar |
| Blocks inside it Pro | Other blocks inside this one |
Advanced
| Setting | What it does |
|---|---|
| Save its data in the page too | See Block fields that are also fields of the page |
| Only inside / Somewhere inside | The block can be added only inside certain blocks (parent), or somewhere inside them (ancestor) |
| Where it can be added | Limits it to certain post types |
| More than one | Whether the same block can appear more than once on a page |
| In the + menu | Whether it is offered in the inserter |
| Reusable | Whether it can be turned into a reusable block |
| Can be locked | Whether the lock option is in its toolbar |
| Next to Pro | Added by itself next to another block |
| Context it reads | Facts that the block takes from the page or from the block around it: postId, postType, queryId… |
| Files | The one that draws it (render), and style, editorStyle, viewStyle, script, editorScript, viewScript, viewScriptModule. A file you name that is not there is made empty when you save |
Did this article answer your question?
Thank you. It helps us make the documentation better. Need more help?