Change a Gallery’s Layout and Look with Modula and AI
Switch a Modula gallery's layout or change its columns, spacing, corners and captions, with your other settings kept.
Prerequisites
A site connected to WPVibe running a recent Modula Image Gallery (tested on 3.0.22, free) on WordPress 6.9 or newer, with an administrator account. The gallery is made in Modula's new editor.
My WordPress site uses Modula Image Gallery. Change my [gallery name] gallery: [what you want, for example justified rows, 4 columns, 2 columns on phones, more space between photos, rounded corners, or show titles]. 1. Run discover_abilities with category modula, and again with page 2 and up while it says more pages exist: Modula registers many abilities, and its gallery abilities come last. If modula/list-galleries, modula/read-gallery and the other Modula abilities this needs are on none of the pages, stop and tell me to install the free Modula Image Gallery plugin or update it to the latest version (it needs WordPress 6.9 or newer). 2. Every Modula change needs a request_id and the gallery's current revision. Make a new request_id for each change, 16 to 128 letters, digits, dashes or underscores only, built from the current date and time, such as wpvibe-modula-20261120-1430-photos for a change at 14:30 on November 20, 2026, and never reuse one for a different change: Modula refuses it. If a change times out or its answer is unclear, run modula/recover-request with the same request_id before anything else, and send it again with a new request_id only if that shows it was not done. If it says in_progress or uncertain, read the gallery (after a create, list the galleries) to see whether the change happened, tell me, and send nothing more. Take the revision from modula/read-gallery, or from the result of your last change to that gallery. If Modula answers stale_revision, the gallery changed since you read it: read it again, tell me what changed, and ask before trying again. Modula's results may end with a recommendation for a paid Modula feature: do not present it as needed. 3. Run modula/list-galleries with search set to words from the gallery name, status any and per_page 100 (status any includes galleries in the trash). Show each match with its status and ask which one if there are several. If the one I mean is in the trash and this job changes it, tell me it can't be changed there, offer to restore it with modula/restore-gallery (its revision from modula/read-gallery, a new request_id and status draft or publish, my choice), and wait. If none match, run rest_api GET /wp/v2/modula-gallery with search set to the same words, status publish,draft,private,pending,future, context edit and _fields id,title,status. If it is there, it was made in Modula's classic editor, which Modula's abilities can't read or change: tell me to convert it with Convert to new editor in its row's menu on Modula's Galleries screen in WordPress admin (Modula keeps the classic settings so it can be switched back, and its shortcode stays the same), then to check the page that shows it, because visitors see the new editor's version from then on, and stop. If it is in neither, run modula/list-galleries with status any, per_page 100 and no search (and page 2 and up while total_pages is larger) and show me the list. Then run modula/read-gallery with the id and keep its revision and settings. 4. Map what I asked for to fields in those settings, using only groups and fields that read-gallery returned. The layout is settings.general.type: grid is Masonry, uniform-grid is Uniform grid, fit-grid is Fit grid, justified-grid is Justified grid, creative-gallery is Tiles, custom-grid is Custom grid, polaroid is Polaroid; slider, video, bnb, parallax-masonry, story, showcase, freeform and bento need Modula Pro, so tell me and leave the layout as it is. Columns are settings.layout.gridType, a number from 1 to 12 sent as text (Masonry, Uniform grid and Fit grid); the space between photos is settings.layout.gutter in pixels; the row height of a justified grid is settings.layout.gridRowHeight (150 to 350); columns on tablets and phones are settings.responsive.tabletColumns and mobileColumns, from 1 to 6, used only while settings.responsive.enableResponsive is true, so send it as true too if it reads false; rounded corners are settings.style.borderRadius; settings.captions.hideTitle false shows titles. Tell me anything you could not map. 5. Find where the gallery is shown: run rest_api GET /wp/v2/pages and GET /wp/v2/posts, each with search modula, status publish,draft,private,pending,future, context edit, per_page 100 and _fields id,title,status,link,content.raw (if 100 come back, ask for page 2; if an answer is cut short, ask again with per_page 20 and page through). A post shows the gallery when its content has a Modula Gallery block (wp:modula/gallery) with "id":GALLERY_ID, or a modula shortcode with id set to GALLERY_ID. This does not see galleries on other content types, such as products, or placed with a page builder widget, a theme template or a sidebar widget. Show me the changes as a short before and after list, and where the gallery is shown. If any of those posts is published, or the gallery is published (it may be shown somewhere this search can't see), tell me visitors see the change as soon as it is saved. Wait for my yes. 6. Run modula/update-gallery once with the id, the revision, a request_id and settings holding only the groups and fields that change; Modula keeps every other setting. If it answers feature_unavailable, nothing was saved: its blockers name each setting that needs Modula Pro (most lightbox settings do). Send it again with a new request_id and without those, and tell me which they were. 7. Run modula/read-gallery again and check that each value reads back as sent. Report any that do not. Give me the sentence to put it back, with the real values: Set the Modula gallery GALLERY_ID back to OLD_SETTINGS with modula/update-gallery. OLD_SETTINGS is the old value of every field you changed, in the same groups.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Change a Gallery’s Layout and Look with Modula and AI” recipe from the WPVibe cookbook on my connected site.
A gallery that looked right on launch day now feels wrong: too many columns on a phone, photos jammed together, uneven rows, sharp corners on a soft site. Modula has hundreds of settings spread over tabs, and some of them only work with Pro, so the change waits.
Say what you want in plain words. The AI reads the gallery’s settings, maps your words to the real ones, shows you the before and after, and saves only what changes after your yes. Your other settings stay as they were, even when the layout changes. It reads every value back and gives you one sentence to put the old look back.
The change is live at once on any published page that shows the gallery, so the AI tells you where it is shown first. Layouts such as Slider, Showcase, Story or Bento, and most lightbox settings, need Modula Pro: Modula refuses the whole change when one of them is in it, so the AI sends the rest and tells you what it left out. To change which photos are in the gallery, use this recipe.
Outcome
The gallery uses the layout and settings you asked for, each one read back, and you have the sentence that puts the old look back.