Skip to main content

Avatar

A user avatar — an uploaded photo, a WordPress user's, initials or an icon — with an optional status dot and label.

The block renders through the avatar element — the same PHP that runs in the page builder, so the front end is identical either way.

What the sidebar exposes

OptionWhat it does
mode_settingsWhat the avatar is, and the fields that choice needs
designDesign preset
shapeCircle, rounded or square
sizeAvatar size
show_statusShow a status dot
show_labelShow the name beside it
initials_color_modeHow initials colours are chosen
ring_colorRing around the avatar
initials_bgInitials background
initials_colorInitials colour
label_colorLabel colour
counter_bgCounter badge background
counter_colorCounter badge text
font_size_presetText size preset

Anything not listed stays available in the page builder, and round-trips untouched — the block only writes the values you change, so an element styled in the builder keeps every setting this sidebar does not show.

note
mode_settings is a picker that reveals its own options

It is a multi-picker: choosing an option reveals the fields belonging to that choice, and only the chosen branch is saved.

The colour options apply to some modes, not all

initials_bg and initials_color do nothing for a photo avatar, and ring_color applies to every mode. They sit after the picker rather than inside it because they are shared across several of its branches — which is also why setting one may appear to do nothing until the mode changes.

Margin and padding come from Gutenberg

The block declares core spacing support, so the element's own spacing option is not exposed here — use the Dimensions panel at the top of the sidebar.