Skip to content

Icons for Property Data

WP-ImmoMakler ships with its own set of line icons for property data, for example a calendar for the year of construction, a floor plan for the rooms or a location pin for the address. The icons are embedded directly in the page as SVG: they load no additional files or fonts and adopt the text colour of their surroundings.

  • In the key data boxes of Elementor, Bricks, WPBakery, Divi 4 and Divi 5, as well as in the “Key detail boxes” block of the site editor.
  • In the key data icon list of Divi 5 and in the “Key Data Icon List” block of the site editor.
  • In the key data icon list of Elementor. For each entry, under Icon Source, you choose between the Standard library with the WP-ImmoMakler icons and Elementor for an icon from the Elementor library. A newly inserted widget uses the standard library; existing widgets keep the icons chosen so far.
  • In the default display without a page builder, at the location line under the title, for example “22391 Hamburg, Terraced house”: in the detail view and in the list view with the “Compact” layout. Also at the link to the position on Google Maps below the map and in the Divi 5 “Location” module.

In the backend of your website (wp-admin) under WP-ImmoMakler → Settings → Display, the Icons section lets you define how all icons are drawn:

  • Icon stroke width: “Fein” (fine), “Leicht” (light), “Normal” or “Kräftig” (bold). “Fein”, “Normal” and “Kräftig” correspond to the Thin, Light and Regular styles of Font Awesome; “Leicht” lies between “Fein” and “Normal”. If your theme or page builder uses Font Awesome, choose the same weight so that both kinds of icons look equally strong. The default is “Normal”.
  • Icon shape: “Circular” draws line ends and corners rounded, “Square” with straight line ends and sharp corners. In the square style, the frames of the calendar and parking space icons also get sharp corners.
  • Location icon: the pin in front of the location line and at the link to the map. You can choose from the four location pins in More icons to choose from. The default is “Standort (runde Spitze, gefüllt)”, which has the same shape as the markers on the WP-ImmoMakler maps.

The settings apply to all page builders and the default display at the same time. The exceptions are the filled icons (see More icons to choose from): they have no line and look the same at every stroke width and shape. You still set the colour and size of the icons in the respective element of your page builder.

You can additionally set the stroke width differently for an individual element: in the key data boxes of Elementor, Bricks, WPBakery and Divi 5, in the key data icon list of Elementor and Divi 5, and in the “Key detail boxes” and “Key detail icon list” blocks there is the Icon stroke width field for this. It defaults to As in the settings. The shape always applies to the whole website.

Icons section on the Appearance tab with the fields for icon stroke weight and icon shape

In addition to the icons of the automatic selection, the key data boxes and key data icon lists offer further variants that you pick specifically for an entry:

  • Yard / Tree (round crown): a tree with a round crown and a trunk, as an alternative to the tree with branches.
  • Location (rounded tip): a teardrop-shaped location pin, as an alternative to the pin with a pointed tip.
  • Location (filled) and Location (rounded tip, filled): both location pins as a filled shape with a cut-out dot.
Icon selection of a key data box in Elementor with the entries Standort, Standort (gefüllt), Standort (runde Spitze) and Standort (runde Spitze, gefüllt)

If an element is set to “Automatic (by field)”, WP-ImmoMakler picks the icon that matches the data field:

Data field Icon
Year of construction, Available from, Last modernisation Calendar
Living area, Usable area and other areas Square with diagonal arrow
Plot area Tree on a plot
Garden area Tree
Number of rooms Floor plan
Parking spaces P in a square
Purchase price, Rents and other price fields Wallet
Property type House
Address Location pin

For fields without an icon of their own, such as bedrooms, bathrooms, floor or energy certificate, WP-ImmoMakler continues to use icons in the style of Lucide. They follow the same stroke width and shape.

For developers: custom icons and adjustments

Section titled “For developers: custom icons and adjustments”

With the filter immomakler_property_field_icons you add or replace icons. Provide only the paths without the <svg> element, drawn as lines on a 24 × 24 grid. Fixed colours are not supported, because colour and stroke come from the surrounding <svg> element. You mark a filled icon with 'solid' => true: WP-ImmoMakler then draws it filled with the text colour and without a line. Cut-outs such as the dot in the location pin are made as a second subpath in the same <path> element (fill rule evenodd).

add_filter( 'immomakler_property_field_icons', function ( $icons ) {
$icons['pool'] = [
'label' => __( 'Pool', 'my-theme' ),
'svg' => '<path d="M2 17h20M2 21h20"/>',
];
return $icons;
} );

With immomakler_property_field_icon_map you assign an icon to a data field for automatic selection, for example $map['hat_pool'] = 'pool';.

With immomakler_property_field_icon_style you set stroke width and shape by code, independently of the setting in the backend. Allowed stroke widths are greater than 0 and up to 4:

add_filter( 'immomakler_property_field_icon_style', function ( $style ) {
$style['stroke'] = '2';
$style['form'] = 'sharp';
return $style;
} );

Every icon carries the CSS class immomakler-icon. Stroke width and shape are set as attributes on the <svg> element, so you can also override them for individual areas via CSS, for example with stroke-width: 2.25;.