WordPress.org

Plugin Directory

Gallery Block by Galleryberg: Lightbox with Tiles, Masonry, Square, & Justified Layouts

Gallery Block by Galleryberg: Lightbox with Tiles, Masonry, Square, & Justified Layouts

Description

Galleryberg Gallery Block enhances your WordPress content creation experience with a feature-rich gallery solution for the block editor. Create stunning image galleries with multiple layout options and built-in lightbox functionality.

Key Features

  • Multiple Gallery Layouts – Choose from tiles, square, masonry, or justified layouts to best showcase your images
  • Responsive Design – Adjustable column counts that adapt beautifully to any screen size
  • Built-in Lightbox – Professional lightbox with zoom effects, keyboard navigation, and touch support
  • Advanced Image Controls – Individual image customization including borders, captions, and aspect ratios
  • Performance Optimized – Server-side rendering ensures fast page loads
  • Accessibility Ready – Proper ARIA labels and keyboard navigation support

Layout Options

  • Tiles Layout – Classic grid layout with consistent spacing
  • Square Layout – Perfect square image containers
  • Masonry Layout – Pinterest-style layout that maximizes space usage
  • Justified Layout – Rows of images with equal heights

Customization Options

  • Adjustable number of columns (1-8)
  • Custom spacing between images
  • Image cropping toggle
  • Caption display options
  • Border and border-radius controls
  • Multiple image size options
  • Duotone filter support
  • Custom link destinations

Lightbox Features

  • Smooth zoom open/close effects
  • Slide navigation between images
  • Keyboard navigation (arrow keys, ESC)
  • Touch-friendly on mobile devices
  • Loop functionality
  • Image zoom capability
  • Draggable images

This plugin uses GLightbox for its lightbox functionality.

Privacy

This plugin does not collect or store any personal data. All images and settings are stored locally in your WordPress database.

Screenshots

  • Gallery block in the editor showing layout options and settings
  • Tiles layout example with 3 columns
  • Masonry layout showcasing irregular image sizes
  • Justified layout with perfect row alignment
  • Lightbox view with navigation controls

Blocks

This plugin provides 2 blocks.

  • Galleryberg Gallery A customizable gallery block for displaying images in columns with optional cropping and spacing.
  • Image A customizable image block for displaying images with optional cropping, spacing, and alignment.

Installation

Automatic Installation

  1. Log in to your WordPress dashboard
  2. Navigate to Plugins Add New
  3. Search for “Galleryberg Gallery Block”
  4. Click “Install Now” and then “Activate”

Manual Installation

  1. Download the plugin ZIP file
  2. Upload the plugin files to the /wp-content/plugins/galleryberg-gallery-block directory
  3. Activate the plugin through the ‘Plugins’ screen in WordPress

After Activation

  1. Create or edit a post/page
  2. Click the “+” block inserter button
  3. Search for “Galleryberg Gallery”
  4. Add the block and start building your gallery

FAQ

How do I create a gallery?

After installing the plugin, simply add the Galleryberg Gallery block to any post or page, then click “Upload” or “Media Library” to add your images.

Can I change the number of columns?

Yes! You can adjust the number of columns from 1 to 8 in the block settings sidebar. The gallery will automatically adapt for smaller screens.

Does the lightbox work on mobile devices?

Absolutely! The lightbox is fully responsive and includes touch support for swiping between images on mobile devices.

Can I disable the lightbox?

Yes, you can disable the lightbox feature in the block settings if you prefer images to open in a new tab or not be clickable.

What image sizes are supported?

The plugin supports all WordPress registered image sizes including thumbnail, medium, large, and full size. You can select your preferred size in the block settings.

Can I add captions to images?

Yes, each image can have its own caption. You can toggle caption display on or off for the entire gallery.

Is the plugin compatible with page builders?

The plugin is designed specifically for the WordPress block editor (Gutenberg) and works seamlessly with it. It may not be compatible with other page builders.

Can I customize the gallery appearance with CSS?

Yes, the plugin generates semantic HTML with appropriate classes that you can target with custom CSS for further customization.

Reviews

October 15, 2025
People were recommending this plugin on Reddit, so I checked it out and I’m impressed. Great job! P.S. Please add some hover effects.
August 27, 2025
I love what I’m seeing so far. I have been looking for a lightweight gallery plugin that has masonry layouts for a long time. Too many of the other options are bloated by features that most people don’t need. This plugin has just what I need.
August 26, 2025
Installed the free version of this plugin on multiple WordPress websites and it works great. If you are using default Gutenberg to create your website then you can try using this plugin to create image galleries.
August 11, 2025 4 replies
This is a very nice plugin that is very well integrated with Gutenberg (using the native gallery editor, much better than e.g. Qi Blocks). Good work! My only request would be an option to control the gap size between images (it is easy to override it using custom CSS though, for the time being).
July 30, 2025
As a full-time blogger, I create lots of content and use hundreds of images on my blog every month. This plugin has been a game-changer for me. It’s so easy to use, as I can simply add the Galleryberg Gallery block to any post or page. It works like a charm. Highly recommended!
Read all 5 reviews

Contributors & Developers

“Gallery Block by Galleryberg: Lightbox with Tiles, Masonry, Square, & Justified Layouts” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.7

  • PRO: FIX: Enhanced security checks and implemented fixes

1.0.6

  • NEW: Galleryberg Gallery Block Pro is now publicly available with advanced features and layouts.

1.0.5

  • NEW: Caption type options including below image, full overlay, and bar overlay.
  • NEW: Advanced caption visibility controls with always visible, show on hover, and hide on hover options.
  • NEW: Advanced caption alignment with positioning matrix for overlay captions and left/center/right options for below captions
  • IMPROVE: Enhanced gallery controls with improved user interface

1.0.4

  • NEW: Border radius control for all images in gallery block.
  • NEW: Transform support from core/gallery to galleryberg/gallery block.
  • IMPROVE: Separate row and column gap options.

1.0.3

  • FIX: Alignment left and right not working properly.
  • NEW: Gallery background color option.
  • NEW: Block Spacing option.
  • NEW: Gallery Padding and margin option.
  • NEW: Gallery border and border radius option.

1.0.2

  • IMPROVE: Compatibility with Classic Themes.

1.0.1

  • FIX: External script issue.

1.0.0

  • Initial release