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 add captions and titles to WordPress gallery images

Updated 4 min read

You can add captions and titles to WordPress gallery images with Modula. They tell visitors more about each photo. You can also change how they look, and use HTML to add links and extra lines.

Add captions and titles to your galleries

  1. Go to Modula → Galleries.
  2. Open the gallery you want to edit.
  3. Click an image in the preview, then click Edit image on it.

    An image selected in the gallery editor with the Edit image button on it
  4. Type your text in the Title and Caption fields.

    The panel of one image with the Alt text, Title and Caption fields

Where titles, captions and alt text are saved

Alt text is a short description of an image for search engines and screen readers. An image’s Title, Caption and Alt text in Modula are the same fields the image has in the WordPress Media Library.

When you edit these fields in a gallery, the Media Library is updated too. Every gallery and album that uses the image shows the same text.

The Alt text, Title and Caption fields of an image in the gallery editor

Change title and caption colors

Once your text is in place, you can choose how it looks. Click Layout in the left rail and open Captions. Under Show image title and Show image caption, use Color to pick a color.

You can paste in a hex code, which is a color written as a code. You can also drag in the color picker until you find the color you like.

The Color, Size and Boldness settings under Show image title and Show image caption

The settings below are in the same Captions section. They control the gallery title, the image titles and the captions. Most of them change only the text in the gallery itself, on or under the thumbnail. A thumbnail is the small image in the gallery.

Title settings

The Captions section with Where it sits, Show gallery title and Gallery title tag
  • Where it sits: Puts the text On the image or Under the image.
  • Show gallery title: Shows the gallery’s title on the page, right above the gallery. With Gallery title tag below it, you choose the HTML element, which is the kind of text the title becomes. Pick Paragraph, or Heading 1 to Heading 6.
  • Show image title: When off, it hides image titles in your gallery. When on, the title shows on the thumbnail. This does not change the title inside the lightbox, the large view that opens on click. You control that with Show title in the Lightbox section. See Lightbox & Links.
  • Color: Changes the color of the title. It applies only to the title shown on the thumbnail. The same goes for all the settings below.
  • Size: Changes the font size of your title, in pixels. Use the device switch next to it to set the size on phones.
  • Boldness: Sets how thick your title looks. It can be Inherit from theme, Light (300), Regular (400) or Bold (700).

Caption settings

  • Show image caption: When off, it hides the image caption in your gallery. When on, the caption shows on the thumbnail. This does not change the caption inside the lightbox. You control that with Show caption in the Lightbox section. See Lightbox & Links.
  • Color: Sets the color of the caption. It applies only to the caption shown on the thumbnail. The same goes for all the settings below.
  • Size: Sets the font size of your caption, in pixels. Use the device switch next to it to set the size on phones.
  • Boldness: Sets the font style of your caption. It can be Inherit from theme, Light (300), Regular (400) or Bold (700).

Add HTML to a caption or title

You can add HTML to your image title or caption. HTML is the code web pages are made of. The result shows inside the lightbox under the image, or in the gallery on the thumbnail.

  1. Open your gallery for editing.
  2. Click the image you want to change, then click Edit image.
  3. In the Title field, type the HTML code. In the Caption field, click Code first, then type the code.

If you want to add a link, you can use this code, for example: <a href="enter your url here">Click HERE for more information</a>

The Caption field on its Code tab with an HTML link typed in

To add more lines below the caption, type them on the Code tab of the Caption field, one under the other. Use the <br> tag between the lines.

The Caption field on its Code tab with three lines separated by the br tag

More ways to work with captions

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.