In a Custom grid gallery you choose the size and place of every image yourself. To leave empty spaces, for example to center a few images, you can use white spacers. White spacers are plain white or transparent images that fill those spaces.
These spacer images stay out of the lightbox (the large view of a photo, on top of the page) if you hide them there.
Add white spacers in the gallery editor
- Make a plain white PNG image, or a transparent one so that your page background shows through. Make one for each empty space you need.
- Open the gallery in Modula → Galleries.
- Add the spacer images with Add, like any other image.
- In the Layout tab, set Type to Custom grid.
- In the preview, drag the images, spacers included, to where you want them.
- Drag the corners of the images to resize them.
- Click a spacer in the preview.
- Click Edit image.
-
In the image panel, switch on Hide in lightbox, so visitors never see the spacer in the lightbox.

- Switch on Hide title.
- Leave the title, caption and alt text of the spacer empty.
- Do the same for every spacer.
Fill a gap with text instead
A spacer is not the only way to fill a gap. A content block is a tile with a headline and some text that sits in the grid like an image. It can fill a gap with words instead of empty space.
- Click the arrow next to Add and choose A content block. An empty tile appears in the gallery.
- Click the new tile in the preview.
- Click Edit content block.
- Write the Headline. You can also add a Subtitle (plain text) and Formatted text (optional).
- Under Colors, pick the Tile background.
You move and resize a content block like an image. Content blocks never open in the lightbox.
Place images freely
With the Freeform gallery type you place each image freely on the page. You can leave empty spaces without spacer images. Freeform needs Modula Pro. See Gallery Types.
For more on Custom grid and the other tiled layouts, read how to make a tiled gallery in WordPress.
To show the finished gallery on a page, see Insert Modula galleries in WordPress posts and pages.