Skip to main content

Image Box

An image with a heading, text and a button — the standard card, and probably the most-placed element in the library.

The block renders through the image_box 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
imageThe image
image_altAlt text for it
subtitleSmall text above the title
titleHeading
title_tagWhich heading level the title uses
textBody copy
iconAn optional icon
button_styleButton design
button_labelButton text
design_settingsCard layout family, and the settings it needs
image_ratioAspect ratio the image is cropped to
content_alignText alignment
image_sizeWhich registered image size to request
hover_effectWhat happens on hover
transition_speedHow fast that effect runs
link_behaviorWhat is clickable — the button, the whole card, nothing
link_urlWhere it goes
link_targetOpen in a new tab
box_styleBox / border preset
image_styleImage treatment preset
icon_badge_presetBadge behind the icon
bg_colorCard background
title_colorTitle colour
subtitle_colorSubtitle colour
content_colorBody colour
icon_colorIcon colour
accent_colorAccent colour
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
design_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 — switch away and back, and the fields you filled in the branch you left are blank.

note
image_alt is here, next to the image, on purpose

Alt text written at the moment the image is chosen gets written. Alt text one surface away stays empty — which is how a page ends up with a dozen images and no descriptions.

Leave it blank only when the image is genuinely decorative and the card's text already says everything.

The preview shows the resting state, never the hover

hover_effect is the one thing the canvas cannot show you. The pointer has to land on the block to select it, so a live effect would mean the preview spent most of its life showing the hover rather than the page.

note
image_style uses the theme's Image Style presets

It is an image-style-picker, and its swatches really are styled in the block sidebar — the preset CSS is loaded in wp-admin, so the tiles show the actual treatment rather than its name.

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.