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 let visitors download gallery images in WordPress

Updated 3 min read

With the Download extension in Modula, you can let visitors download gallery images from your WordPress site. They can get one image at a time, or all images at once in a ZIP file. A ZIP file is one file that holds many files.

Note: Download is part of Modula Pro, included in the Business plan. Turn it on in Modula → Extensions (see how to install extensions). The ZIP download needs the ZIP extension of PHP on your server. If the button doesn’t work, ask your host to turn it on.

Watch how to turn on downloads, and set up the Download All button and the lightbox buttons.

Turn on downloads for a gallery

In the gallery editor, follow these steps:

  1. Go to Modula → Galleries and open the gallery.

  2. Click Interact.

  3. Switch on Enable download.

  4. Choose what visitors can download:

    • Download one image: Shows a download icon on each image of the gallery.
    • Download the whole gallery: Shows a button that downloads every image in one ZIP file. Its settings are under The gallery button.
  5. Set the Download size: Thumbnail, Medium, Large or Full. This is the size of the files visitors get. It starts at Thumbnail, so pick Full if they should get your original images.

    The Interact section with Enable download on, both download options on and the gallery button settings open

These settings change the button that downloads the whole gallery:

  • Label: The text on the button. By default it says “Download All Images”.
  • Where it sits: Above gallery, Below gallery or Above & below gallery.
  • Alignment: Left, Right or Center.
  • Text and Background: The colors of the button.
  • Icon before the label and Icon color: A download icon in front of the text, and its color.
  • Zip file name: The name of the ZIP file. You can mix your own words with these placeholders: %%gallery_title%%, %%gallery_id%%, %%gallery_author%%, %%gallery_date%% and %%archive_generated_time%% (when the ZIP was made). If you leave it empty, the file is called modula-gallery- followed by the gallery ID.

You can also add download buttons to the lightbox, the window that shows an image on top of the page. Go to Lightbox → More settings → Lightbox & Links. With Show toolbar on, turn on:

  • Download button: Downloads the image open in the lightbox.
  • Download all button: Downloads the whole gallery as a ZIP file. It shows up in the list once Enable download is on.
The lightbox toolbar buttons in Lightbox and Links, with Download button and Download all button on

The other toolbar buttons are covered in Lightbox & Links.

Put a Download All button anywhere

The [modula-download] shortcode shows the gallery’s Download All button on its own, for example in a sidebar or above a text. A shortcode is a short tag that WordPress replaces with your content. Use the gallery ID:

MARKUP
[modula-download id="12"]

The button uses the label and colors of the gallery button. It appears only if Enable download is on for that gallery.

The shortcode also works with an album ID. To find a gallery’s ID, see Locate your Modula gallery ID number.

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.