Content module

Icon block

A single line icon — plain or inside a Donix tinted badge — with an optional link.

Overview

The Icon block shows one icon from the plugin’s library of 49 line icons. It can sit inside a coloured badge (circle or rounded square) in six styles, and it can link somewhere. Icons are drawn as crisp SVG, so they look sharp on every screen.

At a glance

Block name
wpbb/icon
Module
Content
Find it by searching
Icon
Loads JavaScript on the site
No

When and why to use it

  • Decorate a section or a list item.
  • Social or contact links (phone, mail, map pin).
  • Visual markers in a layout built with Containers.

Example scenarios

  • Contact strip: three linked icons (phone, mail, map pin) with accessible labels.
  • Section accent: a large Solid brand star above a heading.

See it in action

These are live examples: real Icon blocks rendered by WordPress with the plugin’s own styles and scripts. Use the buttons to see how they adapt to tablet and phone screens.

The six icon styles

How to add the Icon block

  1. Open the editor. In your WordPress dashboard go to Pages (or Posts) and click the page you want to edit, or click Add New. For headers, footers and templates, use Appearance → Editor (block themes).
  2. Add a new block. Click the blue + (Block Inserter) button in the top-left corner, or the small + that appears where you want the block. You can also type / on an empty line.
  3. Search for the block. Type Icon in the search field. Brigade Blocks appear in the Brigade Blocks category and show the coral block icon.
  4. Insert it. Click Icon in the results. The block appears with a star in a warm badge.
  5. Configure the content. Edit the text directly on the block, then open the Settings tab (gear icon) in the right-hand sidebar for the options described below. If the sidebar is hidden, click the gear icon in the top-right corner.
  6. Customise the design. Switch to the Styles tab (half-filled circle icon) to change colours, spacing, borders and more — see Design & styling.
  7. Save or publish. Click Save draft to keep working later, Preview to check it, or Publish / Update to make it live.

Content settings

You set up this block in two places: on the block itself in the editor, and in the Settings tab (gear icon) of the sidebar on the right. Every option is listed below, with its default value.

Block toolbar

Align

What it does
Places the icon left, centre or right.
What to enter or choose
One of: Align text left, Align text center, Align text right.
Default
Align text left
How to use it
Select the block; the button is in the toolbar that appears above it.
Example
Centre above a centred heading.
Result
The icon moves.

Settings panel: Icon

Icon

What it does
The line icon shown in the badge.
What to enter or choose
Any icon from the bundled library (49 icons).
Default
star
How to use it
Click the icon button to open the icon library, search by name (for example “arrow” or “phone”) and click an icon. “None” removes it.
Example
“phone” for a contact block, “shield-check” for a security feature.
Result
The icon appears inside the badge.

Icon style

What it does
The look of the badge behind the icon.
What to enter or choose
One of: Warm tint (brand), Cool tint (mint), Solid brand, Solid dark, Outline, Plain icon.
Default
Warm tint (brand)
How to use it
Open the dropdown and pick an option.
When to use it
“Warm tint” is the signature Donix look; use “Solid brand” to draw more attention, or “Plain icon” for a minimal style without a badge.
Example
Choose “Cool tint (mint)” for a calm, secondary feature list.
Result
The badge colour and background change.

ShapeShown when the Icon style is not “Plain icon”

What it does
A round badge or a rounded square.
What to enter or choose
One of: Circle, Rounded.
Default
Circle
How to use it
Click one of the buttons in the group.
Example
Rounded squares suit app-like or technical designs.
Result
The badge shape changes.

Badge size (px)Shown when the Icon style is not “Plain icon”

What it does
The width and height of the badge.
What to enter or choose
A number from 32 to 160 (px).
Default
56 px
How to use it
Drag the slider, or type a number in the box next to it.
Example
56 px is the standard size.
Result
The badge grows or shrinks; the icon stays centred.

Icon size (px)

What it does
The size of the icon itself.
What to enter or choose
A number from 12 to 96 (px).
Default
24 px
How to use it
Drag the slider, or type a number in the box next to it.
Example
24 px suits the standard badge.
Result
The icon grows or shrinks. Keep it at about 40–45% of the badge size for the best balance.

Design & styling

Select the block, open the Styles tab in the settings sidebar (the half-filled circle icon next to the gear) and use the three pickers at the top of the Style panel:

  1. Element — which part of the block to style.
  2. State — Normal, or a state such as Hover (only the states the part supports are offered).
  3. Device — Desktop, Tablet or Mobile, for values that can differ per screen size.

Only panels that make sense for the chosen part and state are shown. The full meaning of every control is in the Styling Controls guide; below is exactly what Icon offers.

Element: Icon selected first

The icon and its badge — colour, background, border, corners, shadow, size and padding. Has a Hover state.

Styles-tab controls for “Icon”
PanelControlPer deviceAvailable in states
ColorsText—Normal, Hover
BackgroundType—Normal, Hover
Color / Gradient—Normal, Hover
Image—Normal
BorderBorder type—Normal, Hover
Border—Normal, Hover
RadiusYesNormal
Box ShadowRemove shadow—Normal, Hover
Shadow layers—Normal, Hover
SpacingPaddingYesNormal
SizingWidthYesNormal
Max widthYesNormal
HeightYesNormal
Min width / Min height / Max heightYesNormal

States for this part:

  • Hover — When the mouse pointer is over it. (Touch screens have no hover; they show the normal style.)

Element: Block

The wrapper (spacing, size, position, visibility).

Styles-tab controls for “Block”
PanelControlPer deviceAvailable in states
SpacingMarginYesNormal
SizingWidthYesNormal
Max widthYesNormal
HeightYesNormal
Min width / Min height / Max heightYesNormal
Block alignmentYesNormal
PositionPositionYesNormal
Top / Right / Bottom / LeftYesNormal
Z-indexYesNormal
OverflowYesNormal
EffectsState transition (ms)—Normal
Timing—Normal
VisibilityShow on Desktop / Tablet / Mobile—Normal

States: Normal only.

Responsive settings

Brigade Blocks uses three screen sizes: Desktop (wider than 1023px), Tablet (600–1023px) and Mobile (599px and narrower). Tablet and Mobile values are optional: when empty, the value of the next larger screen is used.

In the Styles tab, pick the Device first; these controls can then have a different value for that screen size: Radius, Padding, Width, Max width, Height, Min width / Min height / Max height, Margin, Block alignment, Position, Top / Right / Bottom / Left, Z-index, Overflow.

The Visibility panel (Styles tab, Normal state) can hide the block entirely on Desktop, Tablet or Mobile.

Advanced options

  • HTML anchor (Advanced section of the Settings tab) — a unique name such as pricing, so you can link straight to this block with #pricing at the end of the page address (for example from a menu).
  • Additional CSS class(es) (Advanced section) — for custom CSS from your theme or the Site Editor. Separate several classes with spaces.
  • Custom attributes (Advanced section) — add data-*, title, aria-label, aria-describedby, lang or dir attributes. See Custom attributes.
  • State transition (Styles tab → Effects, Normal state) — how smoothly hover and focus styles animate.

How it works on your site

An inline SVG icon, optionally inside a link. No JavaScript and no icon font is loaded.

Accessibility

  • A linked icon must have an Accessible label, otherwise screen readers cannot tell what it does.

Tips and best practices

  • Use the same Icon style across a page for consistency.
  • The Icon Box block combines an icon with a title and text.

Limitations and notes

  • Only icons from the bundled library can be used (49 line icons); uploading your own icons is not supported.