How to set default settings for WordPress galleries
The native WordPress Gallery block lets you choose columns, image resolution, cropping, links and lightbox behaviour for each gallery, but it does not provide a normal global default setting. For repeatable layouts, use a block pattern; for true defaults applied to new galleries, use a gallery plugin.
- 01Choose your gallery settings
- 02Set up one gallery manually
- 03Save the layout as a pattern
- 04Use a block-specific pattern if needed
- 05Apply real defaults with a plugin
What you need
- Administrator or editor access to WordPress
- A current backup if changing theme or plugin settings
- A defined gallery layout, image size and link behaviour
Choose your gallery settings
Decide what every new gallery should use: the number of columns, image resolution, cropping, aspect ratio, link destination and whether images enlarge in a lightbox. The native Gallery block exposes these controls in its block settings, but the choices are saved for that gallery rather than as a site-wide dashboard default.
Be careful with cropping. It makes images line up neatly, but it can cut important parts from portrait or unusually framed images. Test the layout with several image shapes before making it your standard.
Set up one gallery manually
Edit a page or post, add a Gallery block, and upload or select the images. Select the whole Gallery block rather than an individual image, then set Columns, Resolution, Crop images to fit, Aspect ratio and the link or lightbox option in the sidebar.
Preview the published page on a phone as well as a desktop. A setting that looks tidy at full width can produce very small thumbnails or awkward crops on narrow screens.
Save the layout as a pattern
Select the configured Gallery block, open its three-dot menu and choose Create pattern/reusable block. Give it a useful name such as “Standard portfolio gallery”. Leave it unsynced if you want each inserted copy to receive the layout but use different images. WordPress lets you customise an inserted unsynced pattern without changing the saved pattern.
When creating a new gallery, open the block inserter’s Patterns area, insert the saved pattern and replace its images. This is a practical manual workaround, but it is not a true default: you must remember to insert the pattern instead of choosing a blank Gallery block.
Use a block-specific pattern if needed
If you control the theme or have a developer, WordPress supports assigning a pattern directly to the core/gallery block type. That can make a configured pattern appear when a new Gallery block is inserted, but it requires theme or code work and should be tested after theme changes and WordPress updates.
Do not edit the parent theme directly. Put custom theme changes in a child theme or a maintained custom plugin, and keep a backup before changing block registration or theme files.
Apply real defaults with a plugin
If you create galleries regularly and want settings copied into new galleries automatically, use a gallery plugin that provides a defaults feature. For Envira Gallery, the Defaults Addon adds an Envira Gallery > Envira Default Gallery Settings screen. Configure the gallery tabs there, then click Publish or Update to save the defaults for new galleries.
The important limitation is that changing the defaults does not automatically rewrite existing galleries or albums. Existing items need to be updated separately, so do not expect a new crop or lightbox setting to fix older galleries by itself.
Fast way: if you already use Envira Gallery, install and activate its Defaults Addon, open the default gallery settings screen, configure the layout, image and lightbox options once, and save it. That is quicker and more consistent than rebuilding the settings for every new gallery.
Let Envira Gallery Defaults Addon do it
Applies consistent image sizes, layouts, and lightbox settings to new galleries, ideal for repetitive gallery creation.
Sources
- wordpress.org /documentation/article/gallery-block/?utm_source=openai
- wordpress.org /documentation/article/block-pattern/?utm_source=openai
- developer.wordpress.org /themes/patterns/block-type-patterns/?utm_source=openai
- enviragallery.com /docs/defaults-addon/?utm_source=openai
Questions
- Does WordPress have a global default setting for the Gallery block?
- No, the native Gallery block does not offer a normal global setting that applies your preferred columns, image size and links to every new gallery. You can set those options each time, save a configured gallery as an unsynced pattern, or use a plugin that provides gallery defaults. A developer can also connect a pattern to the Gallery block type.
- Can I reuse gallery settings without installing a plugin?
- Yes, create an unsynced block pattern from a configured Gallery block. Insert that pattern whenever you need a new gallery, then replace its images. It preserves the starting layout while allowing each copy to be edited independently. It is a useful shortcut, but it does not change what happens when you insert a completely blank Gallery block.
- Will changing gallery defaults update existing galleries?
- No, defaults normally affect new galleries only. The Envira Defaults Addon documentation specifically states that existing galleries and albums are not changed automatically. Review older galleries separately if you need them to use the new image size, layout, crop or lightbox settings.
- Why do my gallery settings look different on mobile?
- Gallery settings do not guarantee identical results at every screen width. Columns, image proportions, cropping and the active theme’s styles all affect the front-end layout. Preview a gallery on a phone before adopting it as your standard, and be particularly careful with cropping because it can remove important areas from images with different aspect ratios.
- Can I set default lightbox behaviour in the native Gallery block?
- You can choose Enlarge on click for an individual native Gallery block, which opens images in a lightbox-style view, but WordPress does not provide a standard site-wide default for that choice. A pattern can preserve the choice for repeated use, while a gallery plugin can apply it through its default gallery settings.