Skip to content

Use Photo Gallery "Grid" Block

With the Photo Gallery “Grid” Gutenberg block (immomakler/gallery-grid) you embed the images of a property in the alternating grid layout — independently of the full detail view. Every four photos form a block, with the arrangement (large image left / large image right) alternating automatically. The block matches the functionality and output of the Elementor widget of the same name.

  • WordPress with the Gutenberg editor (WordPress 5.0 or later)
  • WP-ImmoMakler (any edition)
  1. Open a page or template

    In your website’s backend (wp-admin), open a page, a post 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 Photo Gallery Grid, or navigate to the Widgets category. Insert the block.

  3. Configure the block

    Adjust the options in the Layout side panel. The editor preview updates live after each change.

  4. Save and publish

    Save or update the page. The grid is immediately available on the frontend.

All options are located in the Layout side panel.

Sets the overall aspect ratio of a 4-photo block.

ValueRatio
4:3Classic landscape
3:2Photographic landscape
2:1Panorama (default)
Golden ratio1.618:1
1:1Square

Controls how the total height of the block is distributed between the upper and lower row.

ValueDistribution
1:1Both rows equal height
2:1Upper row twice as tall (default)
Golden ratioUpper row taller by the golden ratio

Spacing between individual images within a block and between blocks. Configurable in px (default: 20 px), em, rem, vw or vh.

Restricts the total number of images displayed.

ValueDescription
UnlimitedAll available images are shown (default)
4 / 8 / 12 / 16Only the first N images are shown

Restricts which images from the property’s media archive are shown.

ValueDescription
All imagesShows all images of the property (default)
All except floor plansHides floor plans
Floor plans onlyShows only floor plan images

Each block contains exactly four photos in a 4-column CSS grid. The arrangement alternates with each block:

  • Odd blocks (1st, 3rd, …): Photo 1 top-left (2 columns wide), photo 2 right (2 columns, spanning both rows), photos 3 and 4 bottom-left at 1 column each.
  • Even blocks (2nd, 4th, …): Photo 1 left (2 columns, spanning both rows), photo 2 top-right (2 columns wide), photos 3 and 4 bottom-right at 1 column each.

If a property has fewer than four images (or the last group is incomplete), only the available images are placed — the remaining grid cells stay empty.

The Gutenberg editor shows a server-side rendered live preview of the grid directly in the editor. If no property is available in the page context (e.g. on a regular page), the block falls back to a sample property.