Envira Gallery Documentation

Documentation, Reference Materials and Tutorials for Envira Gallery

How to Load Your Gallery Lightbox from a Text Link

Have you ever wanted to have your Envira gallery lightbox open from a simple text link? We’ve this easy with Envira! This tutorial will walk you through the steps needed.

Our first step is to create a new page or post. For this example, we’ll be working with a new page. Click on Pages ยป Add New and give a title to your page.

Next, copy the Envira Link from your gallery sidebar by clicking the clipboard icon and paste that shortcode into any page or post or widget-ready area on your site:

Copy the Envira Link shortcode from the sidebar

Your final page should look like this:

Complete Page Example

Publish your page to see the link on the page.

Link on Page

To see the gallery, simply click the link!

Completed page - lightbox view

Would you like to do some more fun stuff with Envira? Have a look at our tutorial on How to Style Pagination Links to appear like buttons.

A: You will need to make sure that the lightbox is enabled in the gallery that you are using with Envira Link. Simply check the lightbox option under the Lightbox tab of the gallery.

A: You don’t have to use text to trigger your Envira lightbox. You could use an image or a button as well. Here’s an example for an Envira Link using an image or using a button.

Example :
[envira-link id="381249"]<button>Click Me!</button>[/envira-link]

<p>Click the image below to launch the lightbox!</p>[envira-link id="381249"]<img src="path-to-the-image-you-want" alt="alt text here" width="140" height="73" />[/envira-link]