Key Facts List for Bricks
A nestable Bricks element for a set of labelled facts, such as size, duration, price or status. It is built as a real description list, shown as columns when there is room and as rows when the space is narrow.
Version: 0.1.0 · Requires: WordPress 6.0+, PHP 8.1+, Bricks · See the live demo
What it does
- Uses real dl, dt and dd elements, which screen readers announce as a list of terms and values.
- Fills as many columns as fit, by the width of the space it sits in.
- Switches to rows, label on the left and value on the right, in a narrow space.
- Three styles: plain, dividers and cards.
- Works with query loops.
Installation
- Upload and activate the plugin. Bricks must be active.
- In the Bricks editor search for Key Facts List (General group). It arrives with four sample facts.
Quick start
- Edit the label and the value in each fact.
- Add a fact by duplicating one in the structure panel.
Using it in a loop, including an ACF repeater
The loop can be a post, term or user query, or a repeater such as an ACF repeater or a Meta Box group. For a repeater, choose it as the loop type on the item block, then use its sub-fields in the dynamic data. The demo includes an example built from an ACF repeater.
- Keep one fact block (class
kf-item) and put the query loop on it. - Use dynamic data for the label and the value.
Settings
- Style — plain, dividers or cards
- Switch to rows at (px) — default 420; 0 keeps the columns
- Minimum column width and Gap
- Label and value colours, value size, line colour, card background and radius
Known limits
- Each fact has one label and one value.