Table of Contents

Add a Lightbox Display to the Gallery Block

With PublishPress Blocks plugin, you can show WordPress images inside a lightbox modal. This feature is not available in the normal WordPress image block.

This feature is on the Configuration screen in PublishPress Blocks. This will modify the default “Gallery” block in WordPress.

  • Open galleries in lightbox: This will automatically add a lightbox display to images in the “Gallery” block.
  • Image caption: This feature will automatically take the ALT text for an image and show it as captions for images in lightboxes.

Add a “Gallery” block to your content:

Even though a “lightbox” setting isn't visible, you will be able to click on any image in the gallery and see it in a lightbox:

WordPress allows you to add ALT text to images, using this setting in the Media Library:

This ALT text will appear as a caption below the lightbox image:

Professional publishing plugins for WordPress! Get PublishPress