Skip to main content

Icon Badges — converter mapping

Theme Settings → Components → Icon Badges · ✅ Populated

An Icon Badge is a reusable shaped tile for an icon — a circle / rounded / square / hexagon at a set size, with a tile fill, a centred glyph (its own colour + size), border and box-shadow. The converter detects the source’s icon-in-a-tile pattern, clusters the distinct tiles, and rebuilds the Default-state skin plus the geometry.

Full reference: Icon Badges (how it’s coded + examples).

Where it lives

Option schemaframework/extensions/shortcodes/includes/theme-settings/components-icon-badges.php (schema in framework/includes/option-types/icon-badge-presets/)
Converter methodFW_Site_Converter_Stitch::build_icon_badge_presets()
Storage keyicon_badge_presets
Producesa .iconb-{slug} class per preset — pick it on an Icon Box (Styling → Icon Badge Preset)

The converter finds the source’s icon-in-a-tile pattern and fills the Default state (tile fill, glyph colour, border) plus the geometry — shape, tile size, icon size (derived as ≈ 50% of the tile), and a corner radius for the Rounded shape (Circle is always 50%). The Hover state, box-shadow and hover effects are left at the theme default.

Coverage

10/14 fields derived from the source (71%) — 🟡 0 via CSS · ⚪ 4 default/manual · ⚙️ 2 auto.

Group / fieldTypeStatusDerived from / note
Preset · Identity (shared_top)
preset_nametext✅ NativeThe badge name — from the clustered tile → the .iconb-{slug} class
slugunique⚙️ AutoAuto from the name → the .iconb-{slug} class suffix
Preset · State: Default
backgroundbackground-pro✅ NativeThe tile fill
icon_colorcompact color✅ NativeThe centred glyph colour
border_styleshort-select✅ Nativesolid when the source tile has a border
border_widthunit-input✅ NativeCarried when the source tile has a border
border_colorcompact color✅ NativeCarried when the source tile has a border
box_shadowbox-shadow⚪ UnmappedLeft at the theme default
Preset · State: Hover
(all fields)⚪ UnmappedLeft empty → inherit Default
Preset · Shared (shared_bottom)
badge_shapeshort-select✅ Nativecircle / rounded / square / hexagon — from the source tile
badge_sizeunit-input✅ NativeThe tile’s width & height
icon_sizeunit-input✅ NativeDerived as ≈ 50% of the tile size
border_radiusunit-input✅ NativeFor the Rounded shape (Circle is always 50%)
transitionshort-text (ms)⚙️ AutoFixed at 200 ms
hover_fxmulti-select⚪ UnmappedNot derived
custom_csscode-editor ({{SELECTOR}})⚪ UnmappedNot derived
Icon size follows the tile

The converter sets the glyph Icon Size to about half the tile’s Badge Size (a common, safe ratio) rather than measuring the source glyph separately — so a 48px tile gets a 24px icon. Adjust it on the preset if the source uses a different ratio.

Status legend

  • Native — Derived and written from a source signal.
  • 🟡 Via CSS — Reproduced via generated CSS; the native option is left empty (candidate to promote).
  • Unmapped — Left at default — no source signal, or set by hand.
  • ⚙️ Auto — Plumbing. Excluded from the coverage percentage.

← Back to Components