Made in Europe, buy from Europe.

Black Friday

65% off Annual plans

25% off Lifetime · 10 per week

Ends December 2

Get the deal →

How to center images in a Custom grid with white spacers

Updated 3 min read

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.

Watch how to place white spacer images in a Custom grid and keep them out of the lightbox. You also see how to fill a gap with a content block.

Add white spacers in the gallery editor

  1. 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.
  2. Open the gallery in Modula → Galleries.
  3. Add the spacer images with Add, like any other image.
  4. In the Layout tab, set Type to Custom grid.
  5. In the preview, drag the images, spacers included, to where you want them.
  6. Drag the corners of the images to resize them.
  7. Click a spacer in the preview.
  8. Click Edit image.
  9. In the image panel, switch on Hide in lightbox, so visitors never see the spacer in the lightbox.

    A Custom grid gallery with an image open in the image panel and Hide in lightbox switched on
  10. Switch on Hide title.
  11. Leave the title, caption and alt text of the spacer empty.
  12. 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.

  1. Click the arrow next to Add and choose A content block. An empty tile appears in the gallery.
  2. Click the new tile in the preview.
  3. Click Edit content block.
  4. Write the Headline. You can also add a Subtitle (plain text) and Formatted text (optional).
  5. 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.

Was this page helpful?
0 0

Still stuck?

Can’t find the answer?

Write to us with what you tried and what you expected to happen, and we’ll help you sort it out.