Title: Easy Justified Gallery &#8211; Photo Gallery Block with Lightbox
Author: Havoric
Published: <strong>7. November 2016</strong>
Last modified: 19. August 2026

---

Search plugins

![](https://ps.w.org/easy-justified-gallery/assets/banner-772x250.jpg?rev=1532166)

![](https://ps.w.org/easy-justified-gallery/assets/icon-256x256.jpg?rev=1532166)

# Easy Justified Gallery – Photo Gallery Block with Lightbox

 By [Havoric](https://profiles.wordpress.org/havoric/)

[Download](https://downloads.wordpress.org/plugin/easy-justified-gallery.2.0.0.zip)

 * [Details](https://de-ch.wordpress.org/plugins/easy-justified-gallery/#description)
 * [Reviews](https://de-ch.wordpress.org/plugins/easy-justified-gallery/#reviews)
 *  [Installation](https://de-ch.wordpress.org/plugins/easy-justified-gallery/#installation)
 * [Development](https://de-ch.wordpress.org/plugins/easy-justified-gallery/#developers)

 [Support](https://wordpress.org/support/plugin/easy-justified-gallery/)

## Description

Easy Justified Gallery is a responsive photo gallery that lays your images out in
tidy, full width rows without cropping them, the way photo sites do it. It does 
that one thing and nothing else. No upsells, no ads, no dashboard banners, no tracking.

**Fast by design**

The whole front end is 7.5 KB of JavaScript and CSS, and none of it is jQuery. Rows
are worked out from the image dimensions WordPress already stores, so the layout
is correct before a single image has downloaded and nothing jumps around as they
arrive. Images load lazily, at the size they are actually displayed, using the srcset
WordPress generates.

Assets load only on pages that really contain a gallery. A page without one downloads
nothing at all, and a gallery that opens images in a new tab never downloads the
lightbox.

**Features**

 * A gallery block for the block editor, with a live preview of the real thing
 * As many galleries as you like, each with its own images and settings
 * Reuse one gallery on any number of pages. Edit it once, every page updates
 * Rows justified from image aspect ratios, never cropped, never distorted
 * Captions off, on hover, or always visible, taken from the media library caption
   and falling back to alt text
 * A modern lightbox with pinch zoom, swipe, and keyboard navigation
 * Per gallery row height and spacing, overridable per placement
 * No jQuery, no frameworks, no build artefacts you did not ask for
 * Works with the block editor, the classic editor, widgets, and `do_shortcode()`

**Blocks or shortcodes, your choice**

Add the «Justified Gallery» block and pick a saved gallery, or choose images right
inside the block. Prefer shortcodes? `[easyGallery id="123"]` renders a specific
gallery and plain `[easyGallery]` still works exactly as it did in 1.x.

## Screenshots

[⌊A justified gallery on the front end. Rows are filled edge to edge and no image
is cropped to get there.⌉⌊A justified gallery on the front end. Rows are filled 
edge to edge and no image is cropped to get there.⌉[

A justified gallery on the front end. Rows are filled edge to edge and no image 
is cropped to get there.

[⌊The Justified Gallery block, previewing the real layout inside the editor.⌉⌊The
Justified Gallery block, previewing the real layout inside the editor.⌉[

The Justified Gallery block, previewing the real layout inside the editor.

[⌊Building a gallery: pick the images, drag to reorder, set the layout, copy the
shortcode.⌉⌊Building a gallery: pick the images, drag to reorder, set the layout,
copy the shortcode.⌉[

Building a gallery: pick the images, drag to reorder, set the layout, copy the shortcode.

[⌊Choosing images from the WordPress media library.⌉⌊Choosing images from the WordPress
media library.⌉[

Choosing images from the WordPress media library.

[⌊All your galleries in one list, each with the shortcode to place it.⌉⌊All your
galleries in one list, each with the shortcode to place it.⌉[

All your galleries in one list, each with the shortcode to place it.

[⌊The lightbox, with zoom, swipe and keyboard navigation.⌉⌊The lightbox, with zoom,
swipe and keyboard navigation.⌉[

The lightbox, with zoom, swipe and keyboard navigation.

## Blocks

This plugin provides 1 block.

 *   Justified Gallery A fast, justified image gallery. Pick a saved gallery or 
   choose images right here.

## Installation

 1. Install the plugin through the WordPress plugins screen, or upload the files to`/
    wp-content/plugins/easy-justified-gallery`.
 2. Activate it through the _Plugins_ screen.
 3. Go to _Galleries > Add Gallery_, give it a name, and choose your images.
 4. Add the _Justified Gallery_ block to a page, or paste the shortcode shown on the
    gallery edit screen.

Upgrading from 1.x? Your existing gallery and its settings are moved into a gallery
called «My Gallery» automatically the first time the new version loads. Any `[easyGallery]`
shortcodes already in your content keep rendering it, so there is nothing to do.

## FAQ

### How do I add a gallery to a page?

In the block editor, add the _Justified Gallery_ block and pick your gallery in 
the block settings. Anywhere else, paste the shortcode from the gallery edit screen,
for example `[easyGallery id="123"]`.

### I upgraded from 1.x. Where did my gallery go?

It is under _Galleries_, called «My Gallery», with the same images, row height, 
spacing and caption setting it had before. Existing `[easyGallery]` shortcodes render
it without any change, because a shortcode with no `id` always renders the migrated
gallery.

### Can I use more than one gallery?

Yes, as many as you want. Each gallery gets its own shortcode, and the block can
point at any of them. The same gallery can appear on any number of pages, and editing
it updates all of them at once.

### Can one gallery look different on different pages?

Yes. In the block, turn off _Use the gallery’s own layout_ and set the row height,
spacing, captions and click behaviour for that placement. The saved gallery is left
alone.

### Does it really not use jQuery?

Not on the front end. The layout is plain JavaScript and the lightbox is GLightbox,
neither of which needs jQuery. The image picker on the gallery edit screen uses 
the jQuery that WordPress already loads in the admin, which never reaches your visitors.

### How do I add captions?

Set the caption field on an image in the media library, then choose _Show on hover_
or _Always visible_ under Captions. Images without a caption fall back to their 
alt text, and images with neither are simply shown without one.

### How do I use a gallery in a theme template?

### What happened to Settings > EJ Gallery?

It is gone. Galleries are now real content with their own admin screens, so everything
lives under _Galleries_ instead. Your old settings were migrated across before the
screen was removed.

## Reviews

![](https://secure.gravatar.com/avatar/873de601a27083b49a913092d62ea8b01105bc7779f8710156476a64d0b2813e?
s=60&d=retro&r=g)

### 󠀁[Easy](https://wordpress.org/support/topic/wow-easy-to-configure/)󠁿

 [Yuvrajsinh Jhala](https://profiles.wordpress.org/imyuvii/) 18. August 2026

My first ever plugin

 [ Read all 1 review ](https://wordpress.org/support/plugin/easy-justified-gallery/reviews/)

## Contributors & Developers

“Easy Justified Gallery – Photo Gallery Block with Lightbox” is open source software.
The following people have contributed to this plugin.

Contributors

 *   [ Havoric ](https://profiles.wordpress.org/havoric/)
 *   [ Yuvrajsinh Jhala ](https://profiles.wordpress.org/imyuvii/)

[Translate “Easy Justified Gallery – Photo Gallery Block with Lightbox” into your language.](https://translate.wordpress.org/projects/wp-plugins/easy-justified-gallery)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/easy-justified-gallery/),
check out the [SVN repository](https://plugins.svn.wordpress.org/easy-justified-gallery/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/easy-justified-gallery/)
by [RSS](https://plugins.trac.wordpress.org/log/easy-justified-gallery/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0.0

Release Date: August 19, 2026

The plugin has been rewritten. It is smaller, faster, and no longer carries a settings
framework.

 * NEW: A «Justified Gallery» block for the block editor, previewing the real layout
   rather than an approximation of it.
 * NEW: Unlimited galleries. Galleries are now managed under their own _Galleries_
   menu, each with its own images and settings, and each reusable on any number 
   of pages.
 * NEW: `[easyGallery id="123"]` renders a specific gallery. Plain `[easyGallery]`
   keeps rendering the gallery your 1.x settings were migrated into.
 * NEW: Caption modes: off, on hover, or always visible. Captions come from the 
   media library caption field and fall back to alt text.
 * NEW: The block can lay a shared gallery out differently on one page without touching
   the saved gallery.
 * NEW: The gallery screen warns when captions are switched on but the chosen images
   have no caption text, instead of silently showing nothing.
 * ENHANCED: The front end no longer uses jQuery at all. The jQuery justified gallery
   library and Colorbox have been replaced with roughly 8 KB of plain JavaScript
   and CSS.
 * ENHANCED: Rows are calculated from the image dimensions WordPress already stores,
   so the layout is right before any image loads and nothing reflows as they arrive.
 * ENHANCED: The lightbox is now GLightbox, with pinch zoom, swipe, and keyboard
   navigation. It is only downloaded on pages holding a gallery that uses it.
 * ENHANCED: Images are served through `wp_get_attachment_image()` with a correct`
   sizes` hint, so browsers download a thumbnail scaled to the space it fills rather
   than a full size file.
 * ENHANCED: Native lazy loading and asynchronous decoding on every gallery image.
 * ENHANCED: Without JavaScript, or before it runs, the gallery is laid out with
   CSS instead of collapsing into a column.
 * ENHANCED: Respects `prefers-reduced-motion`, and gallery images are keyboard 
   focusable.
 * ENHANCED: Removed the bundled Carbon Fields library. The plugin is 25 files and
   159 KB, down from 574 files and 10 MB, because it no longer ships a settings 
   framework it barely used.
 * CHANGED: Settings moved from _Settings > EJ Gallery_ to the _Galleries_ menu.
   Existing settings, including those from the pre-1.1 releases, are migrated automatically
   and the old options are left untouched.
 * CHANGED: Requires WordPress 6.5 or newer.
 * FIXED: The «gallery is empty» placeholder is no longer shown to visitors, only
   to users who can do something about it.
 * FIXED: Clicking a gallery image in the block editor no longer navigates the editor
   canvas to the image file.

#### 1.0.0

Release Date: November 11, 2016

 * Initial Commit

#### 1.0.1

Release Date: November 13, 2016

 * NEW: WordPress media browser
 * NEW: Manual image slide show in popup
 * ENHANCED: On hover effect

#### 1.0.2

Release Date: November 14, 2016

 * FIXED: Fixes 4.3.1 css/js path issue
 * ENHANCED: included files via plugins_url() method

#### 1.0.3

Release Date: November 14, 2016

 * ENHANCED: Optimized options json string, removed unused data

#### 1.0.4

Release Date: November 29, 2016

 * ENHANCED: Revamped settings page
 * ENHANCED: Image preview of selected images in gallery settings.
 * ENHANCED: Rewritten entire settings panel, it is now robust and more scalable
   for upcoming releases.

#### 1.0.5

Release Date: December 2, 2016

 * FIXED: Image caption supports on and above WordPress 4.6.0

#### 1.0.6

Release Date: December 2, 2016

 * FIXED: Compatibility with WP 4.7

#### 1.0.7

Release Date: April 13, 2017

 * ENHANCED: Re-branding plugin, preparing for new releases this year.

#### 1.0.8

Release Date: May 23, 2018

 * ENHANCED: Changed the way dummy images were uploaded.

#### 1.0.9

Release Date: Nov 28, 2022

 * ENHANCED: Security updates.
 * ENHANCED: Admin option titles
 * ENHANCED: It will use jQuery if it’s not installed

#### 1.1

Release Date: Dec 03, 2022

 * ENHANCED: Followed up on all the WordPress security standards

#### 1.1.1

Release Date: Dec 06, 2022

 * ENHANCED: removed deprecated libraries

#### 1.2.0

Release Date: August 18, 2026

 * NEW: Tested and confirmed compatible with WordPress 7.1 and PHP 8.5.
 * FIXED: Gallery assets are now registered on `init`, so the shortcode works reliably
   in block themes (block themes render post content before `wp_enqueue_scripts`
   runs).
 * FIXED: The `Open image in > New Tab` option produced a broken anchor because 
   the whole attribute was escaped as a value.
 * FIXED: The «no images selected» notice printed its text in the wrong place.
 * FIXED: The Settings link on the plugins page pointed at the old settings screen.
 * FIXED: Several galleries on one page no longer share the same DOM id, so each
   one initialises and groups its own lightbox.
 * ENHANCED: Updated bundled Carbon Fields from 3.3.4 to 3.6.9, removing PHP 8.2-
   8.5 deprecation notices.
 * ENHANCED: Replaced deprecated jQuery APIs (`$.type`, `$.isFunction`, `.bind()`,`.
   click()`, `.live()`) in the bundled gallery and lightbox scripts.
 * ENHANCED: Captions are escaped before being rendered and are output server side.
 * ENHANCED: CSS and JS are only loaded on pages that actually contain the shortcode.
 * ENHANCED: Images now keep their own alt text; the caption is no longer forced
   into the alt attribute.
 * ENHANCED: The hover effect now works on every image. It used to be drawn by the
   caption element, so images without a caption had no hover state at all.
 * ENHANCED: Captions now sit in a bar along the bottom of the image instead of 
   a panel covering the whole image, and they fade in properly.
 * FIXED: «Requires at least» now states 4.7, the oldest version the plugin actually
   works on. The previously declared 4.0 was never accurate, the bundled settings
   library needs the REST API added in 4.7.
 * FIXED: Settings saved by the pre-1.1 releases are now recovered automatically
   on update, including settings mangled by the old activation routine. Deactivating
   and reactivating the plugin is no longer needed.

## Meta

 *  Version **2.0.0**
 *  Last updated **2 Monaten ago**
 *  Active installations **10+**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/easy-justified-gallery/)
 * Tags
 * [gallery block](https://de-ch.wordpress.org/plugins/tags/gallery-block/)[image gallery](https://de-ch.wordpress.org/plugins/tags/image-gallery/)
   [justified](https://de-ch.wordpress.org/plugins/tags/justified/)[lightbox](https://de-ch.wordpress.org/plugins/tags/lightbox/)
   [photo gallery](https://de-ch.wordpress.org/plugins/tags/photo-gallery/)
 *  [Advanced View](https://de-ch.wordpress.org/plugins/easy-justified-gallery/advanced/)

## Ratings

 5 von 5 Sternen.

 *  [  1 5-Sterne-Rezension     ](https://wordpress.org/support/plugin/easy-justified-gallery/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/easy-justified-gallery/reviews/?filter=4)
 *  [  0 3-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/easy-justified-gallery/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/easy-justified-gallery/reviews/?filter=2)
 *  [  0 1-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/easy-justified-gallery/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/easy-justified-gallery/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/easy-justified-gallery/reviews/)

## Contributors

 *   [ Havoric ](https://profiles.wordpress.org/havoric/)
 *   [ Yuvrajsinh Jhala ](https://profiles.wordpress.org/imyuvii/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/easy-justified-gallery/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/imyuvii)