A listing on Airbnb opens with one large photo next to four smaller ones, and a button to see all the photos. You can create an Airbnb-like gallery on your own site. Modula’s BnB gallery type builds this layout for you from any gallery.
Note: BnB needs Modula Pro. See Install the Modula WordPress plugin and activate the Pro version.
How an Airbnb-like gallery looks
It helps to know how the BnB layout works before you set it up.
- The first image of the gallery is the large one. The next four sit in a grid of two by two next to it.
- When the gallery has more than five images, a Show all photos button sits on the last small image. It shows how many more images there are. It opens the lightbox (the large view of a photo, on top of the page) with all the images.
- When there is little room, on a phone for example, the large image goes on top and the four smaller ones below it.
- BnB galleries have no filters and no pagination.
Create the Airbnb-like gallery
- Go to Modula → Galleries.
- Open a gallery, or click New gallery and add your images with Add.
-
In the Layout tab, set Type to BnB (hero + grid).

- Put the photo you want large in first place. To do this, point at Sort in the toolbar and click Open drag-and-drop reorder. Then drag the photo to the start. See How to sort your images.
- If you like, change Gallery width, and use Style for borders, rounded corners and shadows. The editor saves your changes on its own.
Make the lightbox feel like Airbnb
The layout is done, so now you can set up what happens when someone clicks a photo. In the Lightbox tab, keep On click on Open in lightbox. Then change these settings:
- Prev and next arrows: Switch this on, so visitors can step through the photos.
- Background color: Set this to a dark color.
- Show caption: Switch this on to show each photo’s caption.
- Show thumbnail strip: Switch this on, so visitors can jump to any photo.
For the other lightbox options, see Lightbox & Links.
Next steps
To put the gallery on a page, see Insert Modula galleries in WordPress posts and pages. For the other gallery types, see Gallery Types.