Digital Photography Tips, Tutorials and Resources
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.
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:
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.
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.
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.
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.
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.
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.
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.
Make sure to update the post. Now your lighbox with captions will appear on your site.
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.
Using WordPress and want to get Envira Gallery free?
Envira Gallery helps photographers create beautiful photo and video galleries in just a few clicks so that they can showcase and sell their work.