TrustBadg - Trust Badges

⌘K
  1. Home
  2. TrustBadg - Trust Badges
  3. Getting Started
  4. Gutenberg Block

Gutenberg Block

Block name: Trustbadg Badge Set (trustbadg/badge-set)

How to add it

  1. Create and publish a badge set under Trustbadg → Badge Sets.
  2. Edit a page or post in the block editor.
  3. Click + and search for Trustbadg Badge Set.
  4. In the block sidebar, choose the badge set.
  5. Optionally set Alignment (left / center / right) and Size (small / medium / large).

Block attributes

AttributeDefaultNotes
badgeSetId0Published badge set post ID
alignmentcenterOverrides badge set design alignment when set
sizemediumMaps 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 / full alignment)
  • Any layout where you need precise placement in the content flow

How can we help?