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 create an Airbnb-like gallery with Modula

Updated 3 min read

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.

Watch how to turn a gallery into an Airbnb-like layout with the BnB type and set up its lightbox.

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

  1. Go to Modula → Galleries.
  2. Open a gallery, or click New gallery and add your images with Add.
  3. In the Layout tab, set Type to BnB (hero + grid).

    The BnB (hero + grid) gallery type in the gallery editor: one large image and four smaller ones
  4. 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.
  5. If you like, change Gallery width, and use Style for borders, rounded corners and shadows. The editor saves your changes on its own.

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.

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.