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 move a Modula gallery to the new editor and back

Updated 6 min read

You can move a gallery made before Modula 3.0 to the new gallery editor. Until you move it, the gallery keeps opening in the classic editor. You choose when to move each gallery, and you can go back.

Note: The gallery editor comes with the normal Modula update (3.0 and later). There is no setting to turn on and nothing to download separately.

Watch how to move a classic gallery to the gallery editor with Convert to new editor, and go back with Restore classic editor.

New galleries open in the gallery editor right away, so they don’t need to move. The steps to make one are in Create your first gallery.

  1. Go to Modula → Galleries.
  2. Click the Actions button (⋮) of a classic gallery.
  3. Pick one of the two ways to move it, Try the new editor or Convert to new editor.

The two options work in different ways. The first one is the safe way to try the new editor. A shortcode, mentioned below, is the short text that shows a gallery on a page.

  • Try the new editor: Modula makes a copy of the gallery and opens the copy in the gallery editor. The copy is a draft with its own ID and shortcode, so it doesn’t show anywhere on your site. Your original gallery and its shortcode stay exactly as they were.
  • Convert to new editor: Modula moves the gallery itself, after you confirm. The gallery keeps its ID and shortcode, so the pages that show it now use the new version. Modula keeps a copy of the classic settings, so you can go back later.

After you convert a gallery, check it on your site. Custom CSS (your own style rules) written for #jtg-<ID> needs #modula-<ID> now. To find the number, see Locate your gallery ID.

Use the copy on your site

If you made a copy with Try the new editor and you like the result, put it on your site with these steps:

  1. In the gallery editor, change the status from Draft to Published.
  2. Click Embed and copy the shortcode of the copy.
  3. Go to each page or post that shows the gallery. Replace the old shortcode with the shortcode of the copy. If the page uses the Modula Gallery block, pick the copy in the block instead.

Convert several galleries at once

To convert several galleries at once, tick them in the list. Then click Convert to new editor in the bar above the list.

If your server has WP-CLI, you can also do this with typed commands. WP-CLI is a tool that runs WordPress tasks from a terminal.

  • wp modula gallery convert <ID> --user=1 does the same as the button.
  • Put --all --yes in place of the ID to convert all published classic galleries.
  • wp modula gallery list --user=1 shows which editor each gallery uses.
  • Replace 1 with the ID of an administrator.

Go back to the classic editor

How you go back depends on how you moved the gallery.

  • After Try the new editor: You have nothing to undo. Your original gallery never changed. Keep using it, and move the copy to the trash if you don’t need it.
  • After Convert to new editor: Go to Modula → Galleries and click the Actions button (⋮) of the gallery. Pick Restore classic editor, then confirm. The gallery gets back the classic settings it had when you converted it, and it keeps its shortcode. Settings you changed since then are lost.

Note: Restore classic editor only appears for galleries you moved with Convert to new editor. Galleries created in the gallery editor have no classic settings to go back to. Albums have Try the new editor and Convert to new editor too, but not Restore classic editor. With WP-CLI, wp modula gallery restore <ID> --user=1 restores a converted gallery.

Moving a gallery keeps image titles, alt text and captions

Moving a gallery doesn’t change the texts on your images. An image’s title, alt text and caption are saved on the image in the Media Library, not in the gallery. Alt text is a short description of the image for search engines and screen readers.

Both editors read the texts from the Media Library. So Try the new editor and Convert to new editor don’t change or remove them.

The texts belong to the image, so an image you use in several galleries has the same texts in all of them. You can change the texts in the gallery editor, in the image’s panel (Alt text, Title, Caption) or in Bulk edit.

The change is saved in the Media Library and shows in every gallery with that image. A change you make in the Media Library shows in your galleries too. Read more in How to bulk edit your images.

Move captions into the Media Library Caption

Galleries made in the gallery editor before version 3.0.18 may keep some captions only in the image’s Description. Albums and other galleries can’t show those captions.

When you open such a gallery, the editor shows a notice with the number of images affected.

Click Move to Caption to copy those captions into each image’s Media Library Caption. The Description stays as it is. Visitors see the same captions before and after.

If the texts look missing after an update

Very old Modula versions, such as 2.11, saved these texts inside each gallery. Newer versions read them from the Media Library. After a big update, the texts can look empty even though the galleries still hold them.

Don’t type the texts again yet. Follow these steps first:

  1. Back up your database.
  2. Contact our support team and ask for the gallery image update. It copies the texts still saved in your published galleries to the images in the Media Library. Where a gallery holds a text, that text replaces the one in the Media Library.
  3. Open a few galleries and check that the titles, alt text and captions are back.
  4. If your license shows as expired although you renewed it, go to Modula → Extensions. Click Change key on the license card. Paste your current key and click Activate.

Albums with classic and new galleries

An album can show its gallery covers in different ways when some galleries use the classic editor and others use the new one. For example, the new gallery’s title shows on top of its cover, while the other titles show under their covers.

Keep all the galleries of an album in the same editor. If you moved one, you can move it back:

  • If you used Convert to new editor: Go to Modula → Galleries and click the Actions button (⋮) of the gallery. Pick Restore classic editor and confirm. The gallery keeps its ID and shortcode, so the album and your pages need no change.
  • If you used Try the new editor: Your original classic gallery is still there. Put it back in the album in place of the copy. On the pages where you used the shortcode of the copy, put the shortcode of the original back.

When you finish, check the album on your site.

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.