You can use a custom font for Modula captions and image titles with a few lines of CSS, the code that controls how a page looks. Image titles and captions in Modula galleries use your theme’s font.
The gallery editor has no font list. So to use another font, you load it on your site and then apply it with CSS. The color, size and boldness of the text are gallery settings, covered in Modula Caption and Title Configuration.
1. Load the font on your site
Your site has to load the font first. The steps depend on your theme.
- With a block theme: Add the font in Appearance → Editor → Styles → Typography. There you can install fonts or upload your own font files.
- With a classic theme: Use a plugin such as Custom Fonts, and upload the font files there.
If your theme already uses the font somewhere on the site, the font is loaded. You can skip this step.
2. Apply the font to the titles and captions
Now tell the gallery to use the font. Add this CSS in Appearance → Customize → Additional CSS.
With a block theme, go to Appearance → Editor → Styles. Then choose Additional CSS from the menu with the three dots.
.modula .modula-item .modula-title,
.modula .modula-item .modula-description {
font-family: "Font Name", sans-serif !important;
}Replace Font Name with the name of the font, exactly as it was added. sans-serif is the fallback, which is used until the font loads. Use serif for a serif font.
To change only the titles, delete the line with .modula-description and the comma before it. To change only the captions, delete the .modula-title line.
The code works whether the text sits on the image or under it. For more on adding CSS, see How to add custom CSS to Modula galleries.
For one gallery only
You can also change the font in one gallery only. Put the code in the gallery itself and replace .modula with the gallery’s selector. A selector is the part of the code that says what to change.
In the gallery editor, click CSS in the left rail. The selector, for example #modula-12, is next to Custom CSS, with a Copy button.

You can find more CSS for titles and captions in Custom CSS for Modula image titles, captions and hover.