Justified Gallery


This simple plugin brings the native WordPress gallery to a higher level by adding a nice justified image grid and a pretty lightbox.
Just install and activate the plugin. That’s all.

Create galleries as before, but enjoy the responsive layout, beautiful justified image grid and handy lightbox.

I love the native WordPress gallery. It’s easy to use and as intuitive as possible. Everything would be perfect if it were not for the column layout and lack of lightbox. Many themes display the WordPress gallery in an ugly and “no eye-catching” way. This was my inspiration to write this simple plugin.


See how it works on the DEMO site.


  • Easy to use. You can use the native WordPress gallery just as you did before
  • Beautiful, justified layout thanks to Justified Gallery by Miro
  • Support of image descriptions. Descriptions can also be turned off on a settings page
  • Lightbox. The gallery can be viewed with popular PhotoSwipe by Dmitry Semenov
  • Responsiveness. The gallery adapts to various screen width options. It works perfectly on mobile devices
  • High quality images. The URL of images is tailored to the needs in an intelligent way. Smaller images will be download on smaller screens, larger images on larger screens
  • Justify your images without cropping them
  • Configurable. You can set up a width of the gap between images and height of rows
  • Compatibility with Gutenberg. You can use new block called Justified Gallery.

How to use?

Justified Gallery is based on native WordPress galleries and works out of the box. Create galleries as before. Read more about The WordPress Gallery


Any suggestions or comments are welcome. Feel free to contact me using this contact form.


Justified Gallery plugin was originally created by Damian Góra. It is now owned and maintained by Mateusz Czardybon.

Justified Gallery PRO

Upgrade now!

If you are eg a photographer and publish large galleries (+50 photos per page), you may be interested in the optimizing the loading time of galleries. With the premium version, inter alia, you speed up galleries load time even up to 20 times.

Highlighted Premium Features

  • All Free Features
  • Speed up galleries load time even 20x faster!
  • Lightboxes customization
  • Tiles style customization
  • All future Pro features at current price


  • Gallery demo page
  • Lightbox Gallery
  • Settings page of Justified Gallery


  1. Install the plugin from within the Dashboard or upload the directory justified-gallery and all its contents to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to Settings -> Justified Gallery (admin menu) and set your preferences.
  4. Create The WordPress Gallery or use native WordPress shortcode [gallery]


Great plugin, thank you. Would be great to have a more modest hover option that just fades in a black semi-transparent layer over each image rather than the slide-in magnifier that follows your cursor from image to image. But I can't complain!
As an additional small feature, an individual height for each gallery would be great😊 But nevertheless, it's a great gallery with nice hover effect.
Danke, dass es dich gibt. Ich hoffe, dass ich dich noch lange nutzen kann und dass es Anpassungen an die sich verändernde Wordpress-Welt gibt.
This is an best choice if you do not need the complex features.


“Justified Gallery” 是开源软件。 以下人员对此插件做出了贡献。


“Justified Gallery”插件已被翻译至2种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Justified Gallery”翻译成您的语言。




1.6.0, May 24, 2022

  • REFACTOR: Rebuilt gallery block for the block editor
  • FIX: Justified Gallery block cannot be selected in the block editor
  • FIX: Justified Gallery block preview in the block editor is not visible in WordPress 6.0

1.5.1, March 01, 2022

  • CHANGE: Updated Freemius SDK (security fixes)

1.5.0, July 20, 2021

  • FIX: Change to ‘media’ category in block editor
  • FIX: Compability with PHP 8
  • CHANGE: Latest Freemius SDK

1.4.5, December 09, 2020

  • FIX: Swipebox compability with jQuery 3.x
  • CHANGE: Latest Freemius SDK

1.4.4, May 11, 2020

  • ADD: Compability with Twenty Twenty theme

1.4.3, December 19, 2019

  • CHANGE: Latest Freemius SDK

1.4.2, March 02, 2019

  • ADD: Security patch

1.4.1, December 16, 2018

  • FIX: Undefined wp.editor for the Gutenberg block in WordPress 5
  • CHANGE: Latest Freemius SDK

1.4.0, September 13, 2018

  • ADD: New Gutemberg block called “Justified Gallery”
  • ADD: New option to disable outer space of the grid, when adding space between images!.
  • FIX: Conflict with the Jetpack Lazy Images module
  • FIX: Conflict with the Lazy Load by WP Rocket
  • FIX: Description in Photoswipe white (wedding) theme
  • CHANGE: Latest Freemius SDK

1.3.1, April 3, 2018

  • ADD: Notice “How to use?” on fresh installs
  • FIX: Blurry images on some themes
  • FIX: Swipebox default settings
  • CHANGE: Small changes on settings page

1.3.0, March 14, 2018

  • ADD: New lightbox – Swipebox
  • ADD: New tile style Layla
  • ADD: New hooks and filters
  • ADD: Performance improvement – load script only if needed
  • ADD: Lightbix preview on the settings page
  • ADD: Tiles style preview on the settings page
  • ADD: Pro version advertisement
  • FIX: Restoring the param link=none
  • FIX: Description appearance
  • CHANGE: plugin textdomain as a string
  • CHANGE: Code refactoring

1.2.3, September 23, 2017

  • FIX: Quotation marks in a image description
  • FIX: Images were linked to “Attachment Page” for selected option “Media File”
  • CHANGE: Move admin menu item to the Settings

1.2.2, July 25, 2017

  • ADD: Admin notice for better feedback from users
  • FIX: Share URL after changes in Facebook API

1.2.1, July 10, 2017

  • ADD: Freemius SDK
  • ADD: Option to disable hover effect
  • FIX: Facebook share link
  • FIX: Unnecessary hover effect on mobile devices
  • CHANGE: File structure refactoring

1.2.0, February 25, 2017

  • CHANGE: LightGallery is replaced by PhotoSwipe because of license
  • FIX: Admin bar that covers lightbox window

1.1.0, August 17, 2016

  • ADD: Compatibility with the Enhanced Media Library
  • ADD: Allows to use links in a media description
  • FIX: PHP Warnings caused by using the ‘post_gallery’ filter by other plugins without a third parameter: $instance
  • FIX: Trivial CSS

1.0.0, June 25, 2016

  • ADD: Loupe icon if there is no caption

0.9.1, June 4, 2016

  • First public release