Skip to content

Use 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 visually appealing boxes. Each box shows an icon, a label and the corresponding value. 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.

  • 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 WP-ImmoMakler standard library. Automatic selects the icon matching the field (e.g. house icon for purchase price, area icon for m² fields).
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:

OptionArrangement
Stacked (default)Icon, label and value stacked. The exact order is configurable via “Order (Stacked)”.
Icon left — label/value rightIcon in the left column, label top-right, value below.
Icon left/value right — label belowIcon top-left, value top-right, label centred below.

Only for the Stacked box layout: select one of the six possible arrangements of icon (I), label (L) and value (V):

  • I → L → V (default)
  • I → V → L
  • L → I → V
  • L → V → I
  • V → I → L
  • V → L → I

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 { }