There is no Image Icon variation. Do not insert an Image block and style it as an icon.

Overview

Using the Icon Block

Choose an icon from the Icon block’s picker.

  1. Open the block inserter (+).
  2. Search for Icon.
  3. Insert the Icon block.
  4. Choose an icon from the library, or paste custom SVG in Custom SVG.
  5. Set size, text color, alignment, and (optionally) a link.

WordPress 7.1+ lists Aegis collections beside Core icons in the native picker. On WordPress 7.0, Aegis merges custom sets into the editor via REST when REST API Endpoint is enabled at Aegis → Blocks → Icon.

Custom SVG on the Icon Block

When Custom SVG is enabled at Aegis → Blocks:

  1. Select an Icon block.
  2. Open Custom SVG in the sidebar.
  3. Paste SVG markup. That markup overrides the selected library icon.

Prefer viewBox and fill="currentColor". Remove fixed width/height so the block can size the glyph.

SVG Image Variation

The SVG variation is an Image block (core/image with is-style-svg) for pasted inline SVG files (logos, wordmarks). It is not a replacement for the Icon block.

The svg style is registered once in PHP (Svg::register_style()), not via BlockStyles. Paste markup in SVG Settings. There is no Optimize SVG / SVGOMG control. An empty SVG block shows the Aegis placeholder (preview-only) instead of the Image upload UI.

Aegis → Blocks → SVG extras: Paste Markup (implies the variation), Mask Mode, Onclick, Inline SVG in text, Inline SVG files. See Block Variations.

Icon Library Collections

Collections register with wp_register_icon_collection() / wp_register_icon() when the Icon feature is enabled and WordPress is 7.1 or later.

Switch between icon libraries.

CollectionIDsSource
Corecore/{name}WordPress (wp-includes icon library)
Aegiswordpress/{name}Gutenberg-only SVGs that Core does not ship
Socialsocial/{name}Theme social set (brands Core does not include)
Paymentpayment/{name}, payment/{name}-outlineMono and mono-outline marks from svg-credit-card-payment-icons (currentColor; store patterns use *-outline)
Remix Iconremixicon/{name}Aegis Pro
Phosphor Duotonephosphor-duotone/{name}Aegis Pro
Heroiconsheroicons/{name}Aegis Pro
Featherfeather/{name}Aegis Pro
Hand Drawnhand-drawn/{name}Aegis Pro
Pluginsplugin/{name}Aegis Pro
Brandbrand/{name}Aegis Pro

The library opens quickly even with every Pro set installed (about 5,800 icons). When it asks for icons, Aegis loads only the requested collection or search results, not every icon file. The SVGs of each collection are cached in an aegis_icon_content_{collection} option (not autoloaded). File-backed Aegis icons are sanitized with the icons package (so shapes Core would strip still reach the editor). The cache rebuilds on its own when an icon is added, removed, or renamed, or when the theme is updated, so the first opening after a change takes a few seconds longer.

Aegis does not duplicate Core glyphs. A former wordpress/star-filled icon is stored as core/star-filled. Legacy saved IDs aegis/{set}/{name} still resolve when content is rendered or migrated.

Icon Properties

PropertyControlDescription
IconLibrary picker{collection}/{name} on the block icon attribute
SizeDimensionsWidth (height follows aspect-ratio: 1)
ColorText colorFill uses currentColor unless the SVG sets a non-ink color
GradientIcon gradient (optional)CSS mask gradient when enabled at Aegis → Blocks
AlignmentBlock toolbarLeft, center, right, or inline
LinkIcon linkOptional URL, target, and rel
GalleryIcon galleryAdds all-icons to render every glyph in the selected set

Color and Dark Mode

Icons use currentColor by default:

Stroked icons (outline sets) keep fill="none" and stroke="currentColor". Aegis re-renders non-core library icons on the front end so WordPress SVG sanitization does not strip stroke attributes.

For SVGs with multiple decorative colors, those fills are preserved. Theme color applies only to currentColor and literal ink (#000, black). Payment marks (payment/*) use currentColor so they follow light and dark mode like Social.

See Dark Mode.

Accessibility

Decorative icons

Next to text that already conveys the meaning: keep the SVG aria-hidden and do not add a label.

Informational icons

When the glyph is the only meaning: set an accessible label in Advanced settings (aria-label / <title>).

Icon buttons

A button that shows only an icon needs an aria-label describing the action (for example “Close”).

The skip-to-content link is injected after the header template part is rendered, so it never wraps the <header> landmark. If header icons (including dark-mode toggles) appear in the editor but not on the front end, see Common Issues.

Feature Toggles

With Aegis Dash active, Aegis → Blocks → Icon gates extras on core/icon (it does not register a second icon block):

ToggleEffect
Gradient ColorsGradient picker on the Icon block
AnimationsAnimation settings on icon elements
Custom SVGPaste SVG markup on the block
Icon GalleryGrid of every icon in the selected set
Responsive SizingPer-breakpoint icon size
REST API Endpointaegis/v1/icons for the button/tab picker (catalog + per-set lazy load); on WordPress 7.0 also merges sets into wp/v2/icons

Migrating Legacy Image Icons

Content that still uses <!-- wp:image --> with is-style-icon, or Icon blocks with aegis/{set}/{name} IDs, can be converted:

Copied!
Shell
wp aegis migrate-icons# WordPress Studio:studio wp aegis migrate-icons# Preview only:studio wp aegis migrate-icons --dry-run

The command updates posts, pages, other post types, and widget_block widgets. Review affected templates in the Site Editor afterward.

See Updating.

Adding Custom Icons to the Library

Pro (and child themes) add directories through the Aegis\Icons\Icon::FILTER (aegis_icon_sets). Each folder name becomes a collection slug; each *.svg file becomes {folder}/{basename}.

Requirements:

Icon Sizing

SizeTypical use
16pxInline with small text, metadata
20pxInline with body text
24pxStandard icon size, buttons
32pxMedium emphasis
48pxFeature icons, card headers
64pxLarge decorative icons
96px+Hero section decorations

Relative units (em / rem) scale with surrounding type.

Using Icons in Patterns

Theme patterns use <!-- wp:icon {"icon":"core/home"} /--> (or social/…, Pro sets, and so on). The Icon grid (library) pattern is a static sample of Core/Aegis glyphs.

Social Icons Block

The WordPress Social Icons block (core/social-links) is separate from the Icon library. Aegis still enhances it with styles, size presets, and hover options.

Performance

Next Steps