Skip to content

Key Data Boxes Block

With the Key detail boxes Gutenberg block (immomakler/single-data-boxes) you display the most important data of a property — price, area, number of rooms and more — as boxes. Each box shows a label and the corresponding value, optionally together with an icon. The block matches the functionality and output of the Elementor widget of the same name, “Key detail boxes”, and can be individually configured for each instance.

Key detail boxes on the frontend with property ID, purchase price, living area, lot, rooms, and parking spaces
  • WordPress with the Gutenberg editor (WordPress 5.0 or later)
  • WP-ImmoMakler (any edition)
  1. Edit a property or open a template

    Open an existing property in the editor or a block-based template for the Property post type (requires a block theme or the Site Editor).

  2. Insert the block

    Click the + icon and search for Key detail boxes, or navigate to the Widgets category. Insert the block.

  3. Check the preview

    A live preview using the data of an existing sample property is displayed immediately in the editor. On the actual property page, the data of the respective property is shown.

In the block panel Entries (left sidebar, Settings tab) you manage which data fields are displayed as boxes.

Use the arrow up and arrow down buttons next to each entry to adjust the display order.

Click the × symbol of an entry to remove it. Use + Add entry at the end of the list to add new fields.

Click the arrow-down button of an entry to expand its settings:

SettingDescription
FieldThe property data field whose value is displayed in the box (e.g. kaufpreis, wohnflaeche).
IconIcon from the icons for property data of WP-ImmoMakler. Automatic (by field) selects the icon matching the field, for example a calendar for the year of construction or a floor plan for the rooms. You can also pick a specific icon for each field. The default is No Icon: without your selection no icon appears, and existing blocks look unchanged.
Override labelOptional text that replaces the automatic field label (e.g. “Price” instead of “Purchase price”).
When emptyControls what happens when the field has no value for the property: Hide box (default) or Show placeholder.
PlaceholderOnly visible when “Show placeholder” is selected: –, n/a or not specified.

In the block panel Appearance you control how the boxes are arranged:

OptionDescription
Flex (fluid)Boxes arrange themselves side by side and wrap automatically — suitable for a variable number of boxes.
GridBoxes are arranged in a fixed grid. With the grid style, the number of columns (1–6) becomes configurable.

Controls how icon, label and value are arranged within a box. As soon as at least one entry has an icon, the options also name the position of the icon:

OptionArrangement
Stacked (default)Icon, label and value stacked. You set the exact order under Order (Stacked).
Icon left — label on top, value bottom rightThe icon is on the left, label and value sit next to it, one below the other.
Icon top-left, value top-right, label belowIcon and value sit side by side, the label below them.

Only for the Stacked box layout: without icons you choose whether the label sits above or below the value. As soon as at least one entry has an icon, all six arrangements of icon, label and value are available:

  • Icon → label → value (default)
  • Icon → value → label
  • Label → icon → value
  • Label → value → icon
  • Value → icon → label
  • Value → label → icon

As soon as at least one entry has an icon, the Icon panel appears in the sidebar. There you set the following for all icons of the block:

SettingDescription
Size (px)Height and width of the icons, 24 px by default.
ColorColour of the icons. Without a selection the icons take over the text colour of the block.

In the stacked layout the icon follows the alignment of the label. With Icon stroke width you set a stroke width for this block that differs from the global one; the default is As in the settings. The shape of the icons applies to the whole website, see Icons for property data.

In single-line mode the block shows no icons.

The appearance of the boxes (colours, spacing, font sizes, etc.) is adjusted via the block toolbar menu and the Design options in the sidebar — just like other WordPress blocks. For further customisation you can write your own CSS rules for the block classes in your theme:

/* Wrapper list */
.immomakler-data-list { }
/* Individual box */
.immomakler-data-box { }
/* Icon, label, value */
.immomakler-data-icon { }
.immomakler-data-label { }
.immomakler-data-value { }