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 limit the number of images in a WordPress gallery

Updated 2 min read

Some galleries have a lot of images. You can limit the images in a WordPress gallery, so only the first ones show on the page. The page stays light and pleasant to browse.

You set the number with Pagination, which also lets visitors load the rest.

Note: Pagination comes with the Modula Business plan and higher.

Watch how to set the number of images with Pagination and let visitors browse all images in the lightbox.
  1. Go to Modula → Galleries and open your gallery.
  2. Click Layout in the left rail.
  3. Switch on Pagination. The Page size & navigation box opens under it.
  4. Set Images per page. Use the computer icon for the number on computers. Use the phone icon for the number on phones. With 0 on computers, every image shows. With 0 on phones, phones use the computer number.
  5. Pick how visitors get to the other images:

    • Infinite scroll (on by default): More images load as the visitor scrolls down.
    • Show a Load more button: A button under the gallery loads the next images.
    • Both off: Numbered page links show under the gallery. How many page links to show sets how many numbers you see at once. Default and Active set their colors. Controls position puts them on the left, in the center or on the right.
    Pagination on, with Images per page set to 12 and Show a Load more button on

Your changes are saved as you make them. You can read more about the page controls in Modula Pagination.

Let visitors see every image in the lightbox

The lightbox is the large view that opens when someone clicks an image. There, visitors can browse only the images already on the page. To let them browse the whole gallery from the lightbox, follow these steps.

  1. Click Lightbox in the left rail.
  2. Scroll down to More settings.
  3. Open Lightbox & Links.
  4. Switch on Show all images in lightbox.

    Show all images in lightbox switched on under Lightbox & Links

This works when On click, at the top of the Lightbox tab, opens the lightbox. That means Open in lightbox, or Lightbox, or link when set for the images that have no link.

You can read more about these options in Lightbox & Links.

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.