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

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 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]


Installation Instructions
  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]


This is the plugin you’re looking for!

I was searching for DAYS for a masonary plugin… THAT KEPT THE BOTTOM ROW ALIGNED! This plugin did it for me, out of the box and with very VERY little time to setup. I suggest it to all my photography clients and it’s been a blast. I’ve used it over and over and over and OVER again, because it literally is the best. Thank you so much! A live example would be found here: http://photographybybourne.com/wedding/


Good plugin for managing responsive galleries

It works fantastically to improve the native image wordpress galleries.
On the one hand, image galleries are generated in a very simple way, without a doubt the simplest I have found. On the other hand with the features you have in the free version can do very good things.
Only fact that the individual images (linked to your attachment) inserted in a post, will also be in a lightbox like the galleries. I had to use it with another plugin for that in particular.
My rating 99.5 out of 100.
Thanks to your programmer.
Funciona fantásticamente para mejorar las galerías de imágenes nativas de wordpress.
Por un lado se generan las galerías de imágenes de forma muy sencilla, sin duda la más sencilla que he encontrado. Por otro lado con las características que tiene en la versión gratuita se puden hacer cosas muy buenas.
Solo hecho en falta que las imágenes individuales (enlazadas a su attachment) insertadas en un post, se habran también en un lightbox como las galerías. Yo lo he tenido que utilizar junto a otro plugin para eso en concreto.
Mi valoración 99,5 sobre 100.
Gracias a su programador.


It’s exactly what I was looking for, simple, minimalistic, FREE!
Thanks Damian!

Portrait Orientation Photos


If landscape orientation photos have a fixed row width, portrait orientation photos should have a fixed column width. Currently, this plugin shows portrait so tiny comparing to landscape photos.

I am looking forward to install the plugin again in my blog.

Best regards,

Simple and beautiful

Works flawlessly with the built in gallery function of WordPress. Easy to use and it offers a very nice user experience, specially on mobile devices.

Read all 99 reviews

Contributors & Developers

“Justified Gallery” is open source software. The following people have contributed to this plugin.


“Justified Gallery” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Justified Gallery” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


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