Modula gallery types decide how your images are laid out on the page. Pick the type that fits your photos, then change its settings.
Modula gallery types at a glance
Modula has 14 gallery types, in three groups. To pick one, open your gallery, click Layout in the left rail and use Type. The settings you see change with the type.

Grid layouts
- Masonry: Your images line up in columns and keep their natural heights.
- Uniform grid: Every image gets a tile of the same shape. The image is cropped to fill it.
- Fit grid: Every tile has the same shape, and the whole photo fits inside its tile.
- Justified grid: Images fill each row from edge to edge, and the rows line up by height.
- Custom grid: You resize each image yourself.
Creative layouts
- Creative: Modula arranges and resizes the thumbnails for you.
- Polaroid: Your images look like printed photos, with a white frame and a slight tilt.
- Parallax: A masonry layout where images move at different speeds as you scroll.
- BnB (hero + grid): A quick way to make an Airbnb-style gallery. See how to create an Airbnb-like gallery.
- Freeform: You place each image freely on the page.
Slides & video
- Slider: You can read more about it in Modula Slider.
- Showcase: A row of photos with a larger photo in the center.
- Story: A full-screen, story-style layout.
- Video gallery: You can read more about it in Modula Video.
Note: BnB (hero + grid), Parallax, Freeform, Showcase and Story need Modula Pro. Slider needs the Slider extension. Video gallery needs the Video extension.
Slider and Video gallery each have their own guide, linked above. The sections below cover the settings of Creative, Custom grid, Masonry, Justified grid and BnB. If you are new to Modula, start with how to create your first gallery.
Creative Gallery
The Creative Gallery uses a smart algorithm, which is a set of rules a computer follows. It arranges and resizes the thumbnails to fill the gallery space in the best way. In a way, you could say it has a “brain of its own”.
You can’t control the image sizes, shapes or where they sit in the grid. You can control the gallery’s height and the image file size, so you can fine-tune them to get very sharp images.
The end result is a great-looking gallery. For the most creative effect, turn Randomness up to 100 and switch Randomize images on. You will get a different-looking gallery on every page refresh.

Creative Gallery settings
- Spacing: Use this slider to change the space between the images in your gallery.
- Tile engine: Pick Mosaic or Classic tiles. Mosaic keeps each photo’s proportions. Minimum height and Randomness work only with Classic tiles.
- Gallery width: Can be in % or pixels. We recommend 100%. If your theme doesn’t support full-width templates, 100% will not stretch your gallery past the container of your theme. So make sure you can set the container width to 100% before you try to create a full-width gallery.
- Minimum height: Set the height of the gallery in pixels. If the thumbnails are too small, increase this value. We recommend at least 1200 px.
- Image file size: Picks the size of the image file Modula loads. Larger files look sharper, but they load slower.
- Randomness: Set this to 0 to turn down the randomizing factor of Modula’s grid algorithm.
- Randomize images: Turn this on to shuffle the gallery on each page load.
- Pagination: Splits a large gallery into pages. See how to use pagination.
Custom Grid
The Custom Grid gallery type lets you freely resize images within your gallery’s container. You control their heights, widths and aspect ratio, which is the shape of the image. You can create masonry layouts or columns and rows, depending on your needs.
To resize an image, drag its edges or corners in the preview.

Custom Grid settings
- Spacing: Use this slider to change the space between the images in your gallery.
- Gallery width: The width of the gallery. It can be in % or pixels.
- Image file size: Picks the size of the image file Modula loads. Larger files look sharper, but they load slower.
- Responsive: Sets the number of columns on phones and tablets, and the screen widths where each one starts.
Masonry
Masonry lines your images up in columns. You pick the number of columns, and each image keeps its natural height.

Masonry settings
- Columns: Sets the number of columns, from 1 to 12.
- Spacing: Use this slider to change the space between the images. You can add a different gutter, which is the space between images, for desktop, mobile and tablet.
- Gallery width: The width of the gallery. It can be in % or pixels.
-
Image file size: Select the size of your images. There are several options. You can also choose Custom and enter the image dimensions you prefer under Custom dimensions.
- Thumbnail: Image size 150×150. Crop: true.
- Medium: Image size 300×300. Crop: false.
- Large: Image size 1024×1024. Crop: false.
- Custom: Add your own image size, with width and height in pixels.
- Full: Uses the full image.
- Crop images to fit: If you turn this on, the images are cropped to the exact size set in Custom dimensions.
- Randomize images: Use this option to shuffle images on each page load.
- Pagination: Splits a large gallery into pages. See how to use pagination.
Justified grid
Justified grid fills each row for you. The images keep a shared row height, and each row runs the full width of the gallery.
- Row height: The height of each row, in pixels.
- Last row: Useful when you have an odd number of images and the last row has fewer images. It can be Stretch to fill, Do not stretch, Center or Right align. With Stretch to fill, the last row of pictures is automatically resized to be full width.
BnB
The BnB gallery type makes it even easier to create Airbnb-style galleries. If you want this look quickly, BnB is the type to pick.

BnB settings
- Gallery width: Change the width of your gallery. It can be in percentages or pixels.
- Randomize images: Use this option to shuffle images on each page load.