Title: Lightbox Images for Divi Enhanced
Author: Fernando Tellado
Published: <strong>December 7, 2017</strong>
Last modified: August 18, 2026

---

Search plugins

![](https://ps.w.org/lightbox-images-for-divi/assets/banner-772x250.jpg?rev=3343176)

![](https://ps.w.org/lightbox-images-for-divi/assets/icon-256x256.png?rev=3343176)

# Lightbox Images for Divi Enhanced

 By [Fernando Tellado](https://profiles.wordpress.org/fernandot/)

[Download](https://downloads.wordpress.org/plugin/lightbox-images-for-divi.2.2.6.zip)

 * [Details](https://wordpress.org/plugins/lightbox-images-for-divi/#description)
 * [Reviews](https://wordpress.org/plugins/lightbox-images-for-divi/#reviews)
 *  [Installation](https://wordpress.org/plugins/lightbox-images-for-divi/#installation)
 * [Development](https://wordpress.org/plugins/lightbox-images-for-divi/#developers)

 [Support](https://wordpress.org/support/plugin/lightbox-images-for-divi/)

## Description

The main purpose of the ‘Lightbox Images for Divi’ plugin is to extend Divi’s native
lightbox functionality to all auto-linked images, not just Divi galleries.

**Requirements:**
 This plugin requires **ONE** of the following to be installed
and active: * Divi Theme (version 4.10 or higher) * Divi Builder Plugin (version
4.10 or higher)

The plugin will automatically check for these requirements during activation and
will not activate if they are not met.

**Main features:**

 * **Full Divi 5 Support:** Works with Divi 5 pages, including backwards compatibility
   mode. No jQuery required — the plugin works in vanilla JavaScript with an elegant
   built-in lightbox when Magnific Popup is not available
 * **Attachment Page Links:** Now handles images linked to WordPress attachment 
   pages (not just direct image URLs), resolving the full-size image automatically
 * **Dependency Checking:** Automatically verifies Divi theme or Divi Builder plugin
   is active before allowing activation
 * **Extended Compatibility:** Works with the Divi or Divi Builder theme, compatible
   with Divi 4.10+ and Divi 5
 * **Native Integration:** Uses Divi’s Magnific Popup when available, falls back
   to a lightweight built-in lightbox otherwise
 * **Easy to Use:** Simply install and activate the plugin. No additional configuration
   is required
 * **Optimized Performance:** Vanilla JavaScript with no hard dependencies. CSS 
   and JS loaded conditionally
 * **Ready for the Future:** Works in both Divi 4 (jQuery/Magnific Popup) and Divi
   5 (vanilla JS fallback) environments
 * **Extensible:** Includes a filter (`ayudawp_lightbox_selectors`) that allows 
   developers to customize CSS selectors to include or exclude specific elements

This plugin enhances the user experience on websites built with Divi, ensuring that
any image linked to itself (i.e., clicking on it opens the image in its full size)
is displayed in a lightbox effect.

Unlike Divi’s default functionality, which often restricts this effect to galleries,
this plugin extends it to all individual images, providing a consistent and engaging
visual experience.

The plugin is ideal for photographers, bloggers, and any Divi user who wants to 
offer a more polished and professional image viewing experience without the need
for complex configurations or additional gallery plugins.

### Support

#### Need private support or custom development?

Do you need one-on-one help, priority troubleshooting, or a custom feature, integration,
or tweak built specifically for your site? I offer private support and custom development.
Just [contact me](https://wordpress.org/plugins/lightbox-images-for-divi/lightbox-images-for-divi@ayudawp.com?output_format=md)
and tell me what you need.

#### Need help or have suggestions?

 * [Official website](https://servicios.ayudawp.com/)
 * [WordPress support forum](https://wordpress.org/support/plugin/lightbox-images-for-divi/)
 * [YouTube channel](https://www.youtube.com/AyudaWordPressES)
 * [Documentation and tutorials](https://ayudawp.com/)

**Love the plugin?** Please leave us a 5-star review and help spread the word!

### About AyudaWP

We are specialists in WordPress security, SEO, and performance optimization plugins.
We create tools that solve real problems for WordPress site owners while maintaining
the highest coding standards and accessibility requirements.

## Screenshots

[[

## Installation

 1. **Important:** Make sure you have either Divi theme active OR Divi Builder plugin
    installed and active before proceeding
 2. Upload the `lightbox-images-for-divi-enhanced` folder to `/wp-content/plugins/`
    directory
 3. Activate the plugin via the ‘Plugins’ menu in WordPress
 4. The plugin will automatically check for Divi compatibility and prevent activation
    if requirements are not met
 5. That’s it! All your auto-linked images will now open in a lightbox

## FAQ

### What happens if I don’t have Divi installed?

The plugin will not activate and will show an error message explaining that either
Divi theme or Divi Builder plugin is required.

### Can I use this plugin with other themes?

No, this plugin is specifically designed to work only with the Divi ecosystem (Divi
theme or Divi Builder plugin). It will not function with other WordPress themes.

### What happens if I deactivate Divi after installing this plugin?

The plugin will automatically deactivate itself and show an admin notice explaining
why it was deactivated.

### Is it compatible with Divi 5?

Yes, the plugin fully supports Divi 5. It works both in backwards compatibility 
mode (using Magnific Popup) and in native Divi 5 pages (using a lightweight built-
in lightbox). No jQuery is required.

### Does it work with images linked to attachment pages?

Yes, since version 2.2.0 the plugin handles both direct image URLs (e.g. photo.jpg)
and WordPress attachment page links. The full-size image is resolved automatically
from the embedded image element.

### How can I customize the image selectors?

For advanced users and developers, the plugin provides an `ayudawp_lightbox_selectors`
filter. You can use this filter in your child theme’s `functions.php` file to add
or modify the CSS selectors that the plugin uses to identify images. For example:

    ```
    php
    add_filter( 'ayudawp_lightbox_selectors', 'my_custom_lightbox_selectors' );
    function my_custom_lightbox_selectors( $selectors ) {
        $selectors[] = '.my-custom-module a'; // Add selector for custom module
        return $selectors;
    }
    ```

### Does this plugin work with Divi Builder plugin on non-Divi themes?

Yes, as long as you have the Divi Builder plugin installed and active, the plugin
will work regardless of your active theme.

## Reviews

![](https://secure.gravatar.com/avatar/5c83a6b90213b2202e658b957189faf25504925c2f8d0c8e70bb416633fe28d2?
s=60&d=retro&r=g)

### 󠀁[Great support, Great plugin](https://wordpress.org/support/topic/great-support-great-plugin-145/)󠁿

 [webdash](https://profiles.wordpress.org/webdash/) March 31, 2026 1 reply

Adds a lightbox where divi is missing them.. Developer is active and responsive.
Good Job!

![](https://secure.gravatar.com/avatar/8439c0b8e69dba402a16468e80e8f09ee3113b50c71fecbe41426ef070b3d1cd?
s=60&d=retro&r=g)

### 󠀁[Beautiful](https://wordpress.org/support/topic/beautiful-411/)󠁿

 [Alvaro Torres](https://profiles.wordpress.org/algato333/) January 16, 2026

My website has received an aesthetic improvement.

![](https://secure.gravatar.com/avatar/5b0a1b43796cabd58557441ad319e078e81a1cf7020562e73b1c377da0d5bd37?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-41191/)󠁿

 [Héctor Tellado](https://profiles.wordpress.org/hectortellado/) January 12, 2026

Just works

![](https://secure.gravatar.com/avatar/a7276235fb250f091f56688568365e47d4536c5acc9b22873be5d89ded125a3e?
s=60&d=retro&r=g)

### 󠀁[Works just fine!](https://wordpress.org/support/topic/works-just-fine-205/)󠁿

 [iz4atkal](https://profiles.wordpress.org/iz4atkal/) June 20, 2024

Just install and use. 👍

![](https://secure.gravatar.com/avatar/bf558390caba321a7f2e840fa72cc37cc12e5abf62e8ad48048cfc3cd78ab466?
s=60&d=retro&r=g)

### 󠀁[Wonderful!](https://wordpress.org/support/topic/wonderful-1005/)󠁿

 [bluemi](https://profiles.wordpress.org/bluemi/) July 10, 2023 1 reply

Exactly the kind of plugin I was looking for.

![](https://secure.gravatar.com/avatar/750029d17a7371254da65099befa42be729c9fe98a933b39b53c538148b1e112?
s=60&d=retro&r=g)

### 󠀁[Perfect!](https://wordpress.org/support/topic/perfect-9892/)󠁿

 [bociakrodyl](https://profiles.wordpress.org/bociakrodyl/) May 11, 2023 1 reply

Works even better than the image module from Divi!Why? Because I have a thumbnail
embedded on the page, and the full-size image will only be displayed after zooming
in. Unfortunately, the image module from Divi immediately displays a large image
to be able to enlarge it. This sucks…The option provided by this plugin was missing
in Divi from the very beginning. Thanks for the great job!

 [ Read all 15 reviews ](https://wordpress.org/support/plugin/lightbox-images-for-divi/reviews/)

## Contributors & Developers

“Lightbox Images for Divi Enhanced” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Fernando Tellado ](https://profiles.wordpress.org/fernandot/)
 *   [ Ayuda WordPress ](https://profiles.wordpress.org/ayudawp/)

“Lightbox Images for Divi Enhanced” has been translated into 9 locales. Thank you
to [the translators](https://translate.wordpress.org/projects/wp-plugins/lightbox-images-for-divi/contributors)
for their contributions.

[Translate “Lightbox Images for Divi Enhanced” into your language.](https://translate.wordpress.org/projects/wp-plugins/lightbox-images-for-divi)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/lightbox-images-for-divi/),
check out the [SVN repository](https://plugins.svn.wordpress.org/lightbox-images-for-divi/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/lightbox-images-for-divi/)
by [RSS](https://plugins.trac.wordpress.org/log/lightbox-images-for-divi/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.2.6

 * Improved: Tested and verified compatible with WordPress 7.1
 * Fix: Divi Builder detection now checks the `ET_BUILDER_VERSION` constant before
   the admin-only `is_plugin_active()` function, so the front end no longer depends
   on `wp-admin/includes/plugin.php` being loaded by another plugin

#### 2.2.5

 * Fixed: Linked images (e.g. button-style images linking to other pages) were being
   hijacked by the lightbox since 2.2.0, overriding the original `href`
 * Improved: Attachment-page detection now requires the link to be same-origin, 
   not open in a new window, and either carry an `attachment_id` query parameter
   or have a path slug that matches the image file name
 * Plain external or internal links wrapping an `<img>` are now left untouched, 
   restoring the original click behavior
 * Changed: Version history moved to a dedicated changelog.txt file served from 
   the plugin’s public SVN, keeping readme.txt focused on the current release

#### 2.2.4

 * Fixed 404 error in browser console on Divi 5 for `magnific-popup.js` and `magnific_popup.
   css`
 * The plugin now verifies the bundled Magnific Popup files actually exist on disk
   before enqueuing them, and cleanly falls back to the built-in vanilla JS lightbox
   when they are not available
 * Enqueue hook moved to priority 20 so Magnific Popup detection correctly sees 
   scripts already registered by Divi
 * Hardened script detection loop against non-string values (prevents potential 
   PHP 8+ warnings)

#### 2.2.3

 * Fixed lightbox not working on images in the WordPress classic/block editor post
   content field when rendered by Divi’s Post Content module
 * The Post Content module container (`.et_pb_post_content`) is now correctly recognized
   as an allowed content area

For older changelog entries, please check the [changelog.txt](https://plugins.svn.wordpress.org/lightbox-images-for-divi/trunk/changelog.txt)
file

## Meta

 *  Version **2.2.6**
 *  Last updated **1 month ago**
 *  Active installations **4,000+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **7.1.2**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/lightbox-images-for-divi/), [English (UK)](https://en-gb.wordpress.org/plugins/lightbox-images-for-divi/),
   [English (US)](https://wordpress.org/plugins/lightbox-images-for-divi/), [Galician](https://gl.wordpress.org/plugins/lightbox-images-for-divi/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/lightbox-images-for-divi/),
   [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/lightbox-images-for-divi/),
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/lightbox-images-for-divi/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/lightbox-images-for-divi/),
   [Spanish (Venezuela)](https://ve.wordpress.org/plugins/lightbox-images-for-divi/),
   and [Ukrainian](https://uk.wordpress.org/plugins/lightbox-images-for-divi/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/lightbox-images-for-divi)
 * Tags
 * [divi](https://wordpress.org/plugins/tags/divi/)[divi5](https://wordpress.org/plugins/tags/divi5/)
   [gallery](https://wordpress.org/plugins/tags/gallery/)[image](https://wordpress.org/plugins/tags/image/)
   [lightbox](https://wordpress.org/plugins/tags/lightbox/)
 *  [Advanced View](https://wordpress.org/plugins/lightbox-images-for-divi/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  15 5-star reviews     ](https://wordpress.org/support/plugin/lightbox-images-for-divi/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/lightbox-images-for-divi/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/lightbox-images-for-divi/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/lightbox-images-for-divi/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/lightbox-images-for-divi/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/lightbox-images-for-divi/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/lightbox-images-for-divi/reviews/)

## Contributors

 *   [ Fernando Tellado ](https://profiles.wordpress.org/fernandot/)
 *   [ Ayuda WordPress ](https://profiles.wordpress.org/ayudawp/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/lightbox-images-for-divi/)