Opening and editing entry details in a lightbox (modal/popup)
A lightbox opens an entry’s details, or its Edit Entry form, in a popup over the page, so people stay on the list of entries they came from. You can open a View’s entry links in a lightbox, and links you make with the [gv_entry_link] shortcode.
Open entry links in a lightbox #
- Edit the View.
- In the Multiple Entries Layout, click the gear icon of the field that links to the entry, such as a name column.
- Check Link to single entry, then check Open in a lightbox?.
- Close the settings and click Update.

A Link to Single Entry or Link to Edit Entry field always links to the entry, so its settings have no Link to single entry checkbox. Checking Open in a lightbox? unchecks Open link in a new tab or window? and grays it out.
The lightbox shows the entry with the fields of the View’s Single Entry layout. Entry links open in the lightbox even when Enable lightbox for images, on the View Settings tab, is turned off.
Move between entries
The arrows at the sides of the lightbox open the previous or next entry listed on the page. The close button at the top right closes the lightbox.

Edit entries in the lightbox #
- In the Multiple Entries Layout, add a Link to Edit Entry field.
- Click its gear icon and check Open in a lightbox?.
- Close the settings and click Update.
The link shows only to users who can edit that entry, such as the person who created it when the View has Allow User Edit turned on. Allowing users to edit their own entries explains that setting.

When an entry is open in the lightbox, a Link to Edit Entry field in the Single Entry layout opens the Edit Entry form in the same lightbox.
Settings on the Edit Entry and Delete Entry tabs of the View’s Settings box decide what happens next:
- After Update, the lightbox stays open and shows “Entry Updated. Return to Entry.” Redirect After Editing, on the Edit Entry tab, can show the entry instead, close the lightbox and reload the page, or send the page to another address. See Choosing where users go after editing an entry.
- Cancel closes the lightbox. To show the entry’s details in the lightbox instead, set Cancel Link Action, on the same tab, to Redirect to Single Entry.
- Users who can delete the entry also see Delete. After they delete it, Redirect After Deleting, on the Delete Entry tab, either closes the lightbox and reloads the page or sends the page to another address. See Configuring Delete Entry.
Open a lightbox from a shortcode #
Add lightbox="true" to the [gv_entry_link] shortcode. On a page or post, the shortcode also needs view_id and entry_id:
[gv_entry_link view_id="2" entry_id="123" lightbox="true"]Profile[/gv_entry_link]When the View has Enable Enhanced Security turned on, add the View’s secret as well, such as secret="abc123". Without it, visitors see no link. Enable Enhanced Security: the secret attribute for shortcodes shows where to find the secret.
Add action="edit" to open the Edit Entry form in the lightbox instead. The link shows only to users who can edit the entry.
When the View has Prevent Direct Access turned on, or the gravityview/view/output/direct filter blocks it, the lightbox opens the entry from a page that embeds the View. On other front-end pages, visitors see “The requested entry could not be found.” in the lightbox. With Prevent Direct Access, administrators and editors still see the entry there.
With Dashboard Views, the View’s page in the WordPress dashboard opens its entries in the lightbox too, even with Prevent Direct Access turned on. That page is open to the roles chosen under Limit Access to User Role(s) on the View’s Dashboard Views tab, such as Author and Contributor, and to administrators.
In a Custom Content field of the View itself, each link goes to the entry it belongs to, so the shortcode needs only lightbox="true":
[gv_entry_link lightbox="true"]Open profile[/gv_entry_link]Using the Custom Content field explains how to add one.
A shortcode link opens its entry alone, without the arrows. Without lightbox, the link opens the entry’s Single Entry page. All the attributes are listed in The [gv_entry_link] shortcode.