Block name: Trustbadg Badge Set (trustbadg/badge-set)
How to add it
- Create and publish a badge set under Trustbadg → Badge Sets.
- Edit a page or post in the block editor.
- Click + and search for Trustbadg Badge Set.
- In the block sidebar, choose the badge set.
- Optionally set Alignment (left / center / right) and Size (small / medium / large).
Block attributes
| Attribute | Default | Notes |
|---|---|---|
badgeSetId | 0 | Published badge set post ID |
alignment | center | Overrides badge set design alignment when set |
size | medium | Maps to global icon size preset |
The block is dynamic — it renders on the server, not in saved post content. The editor loads a live preview via REST (GET /trustbadg/v1/badge-set-preview/{id}).
When to use the block
- Pricing or landing pages
- Checkout drawers or custom checkout layouts
- Sidebars and full-width sections (supports
wide/fullalignment) - Any layout where you need precise placement in the content flow
