Envira Gallery Blog

Digital Photography Tips, Tutorials and Resources

how-to-create-a-lightbox-with-caption-in-wordpress

How to Create a Lightbox with Caption in WordPress

by Waseem Abbas on Jan 19, 2017

Do you want create a lightbox image gallery with captions? Sometimes you may need to display captions on lightbox view for your photo galleries. In this tutorial, we will show you how to create a lightbox with caption in WordPress.

Captions are very useful for describing images to your photography website visitors. This little detail also helps to optimize your images for search engines.

However, you may only want the caption to appear on lightbox view, after someone clicks to view a particular image. To do this, you’ll need a plugin like Envira Gallery.

To create a lightbox with caption in WordPress, you’ll need to follow these 5 steps:

  • Step 1. Install and activate Envira Gallery plugin
  • Step 2. Install and activate Gallery Themes addon
  • Step 3. Create an image gallery in WordPress
  • Step 4. Select the lightbox captioned theme
  • Step 5. Publish and add the image gallery in your pages/posts

By the end of this tutorial, you’ll have a lightbox with captions that looks something like this:

Lightbox with Caption in WordPress

Ready to get started? Let’s go!

Step 1: Install and Activate Envira Gallery Plugin

First thing you need to do is to install and activate Envira Gallery WordPress plugin.

Envira Gallery

To learn more about installing the plugin, you can check out our guide on how to install Envira Gallery.

Step 2: Install and Activate Gallery Themes Addon

After activating the plugin, you should go to Envira Gallery » Addons from your WordPress admin account. Then, install and activate the Gallery Themes addon.

To access this addon, you must have Envira Plus or higher license. For more information, check out this guide on how to upgrade your Envira license.

Gallery Themes Addon

Upon activating the addon, you can go ahead and create an image gallery with lightbox captions.

Step 3: Create an Image Gallery in WordPress

To create your photo gallery, simply go to Envira Gallery » Add New and type in a title for your image gallery. Then, drag and drop the images in the Native Envira Gallery section.

New Gallery

To learn more about creating an image gallery, you may want to check out our guide on how to create an image gallery with thumbnails in WordPress.

Step 4: Select the Lightbox Captioned Theme

Once your photos are added, you should scroll down and go to the Lightbox tab. In the Gallery Lightbox Theme dropdown, go ahead and select the Captioned theme.

Captioned Theme

You can also change the position of your caption in the lightbox view. In the Caption Position dropdown, simply select your preferred position for the caption.

Caption Position

Step 5: Publish and Add the Lightbox with Captions to Your Page/Post

Once you are happy with your settings, go ahead and click on the Publish button.

You’ll see a shortcode in the Envira Gallery Code widget. Copy this shortcode.

Copy Shortcode

Go ahead and edit your post/page or add a new post/page from Posts/Pages » Add New. Then paste the shortcode into the visual editor.

Paste Shortcode

Make sure to update the post. Now your lighbox with captions will appear on your site.

Lightbox with Caption in WordPress

That’s all. We hope this tutorial has helped you to learn how to create a lightbox with caption in WordPress. You may also want to check out our guide on how to add caption below images in WordPress.

If you like this tutorial, then please follow us on Facebook and Twitter for more free WordPress tutorials.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.