Lightbox Images for Divi Enhanced

Plugin Banner

Lightbox Images for Divi Enhanced

by Fernando Tellado

Download
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:

  • 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, and has been designed with compatibility in mind for Divi 4.10 and future versions, including Divi 5
  • Native Integration: Uses the lightbox functionality already present in Divi, ensuring seamless integration with your site’s design and performance
  • Easy to Use: Simply install and activate the plugin. No additional configuration is required
  • Optimized Performance: The code has been refactored to follow WordPress best practices, efficiently concatenating scripts and minimizing the impact on page load
  • Ready for the Future: Incorporates robust CSS/jQuery selectors and a script concatenation system that anticipates changes in the Divi 5 structure, such as the new Flexbox system
  • 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 Divi’s elegant native 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 help or have suggestions?

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.

  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 Divi lightbox
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 has been developed with compatibility with Divi 5 and its structural changes in mind. Robust selectors have been implemented and script loading has been optimized to ensure functionality in future versions of Divi.

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.

Works just fine!

By iz4atkal on June 20, 2024

Just install and use. 👍

Wonderful!

By (bluemi) on July 10, 2023

Exactly the kind of plugin I was looking for.

Perfect!

By bociakrodyl on May 11, 2023

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!

Works great

By CBServices on July 16, 2021

Tested on lastest version of WP and Divi as of today.

perfect use-case

By sincjane on November 27, 2020

this plugin helped me perfectly to lightbox my images within the divi-builder!

Sin complicaciones

By rafagama54 on July 16, 2020

Excelente, no se necesita más. Una opción básica que no viene con Divi.

Excellent, please keep it updated!

By Phenotype_X on October 16, 2019

Some other lightbox plugins add a double lightbox to the Divi gallery, but this one works perfectly.

Super Easy and Incredibly Useful

By sheilaintc on February 18, 2019

Nice plugin. This solved a big problem for me.

Perfect!

By rextherunt on July 16, 2018

Thanks so much for making this available - works perfectly and is a great help.

Thank's!

By doubled on April 27, 2018

2.1 – 2025-09-11

  • Improved user experience during plugin activation with friendly admin notices instead of error pages
  • Enhanced dependency checking system with automatic plugin deactivation
  • Added comprehensive compatibility verification during plugin activation
  • Improved error messages with clear requirements explanation
  • Added automatic deactivation if Divi is removed after plugin activation
  • Better detection of Divi Builder plugin vs Divi theme
  • Added support link in plugin action links
  • Improved version detection for better compatibility checking
  • Enhanced admin notices for better user experience
  • Removed deprecated load_plugin_textdomain() function call

2.0 – 2025-08-04

  • Complete refactoring of the code to a class structure (Singleton)
  • Migration of the JavaScript script to an external file (assets/js/lightbox-images-for-divi.js)
  • Use of wp_enqueue_script for more efficient script loading and following WordPress best practices
  • Optimization of CSS/jQuery selectors for greater robustness and compatibility with future versions of Divi (including Divi 5)
  • Implementation of a filter (ayudawp_lightbox_selectors) to allow customization of selectors
  • Improved verification of compatibility with Divi and its version
  • Added uninstall hook for cleaning options
  • Updated plugin information (version, author, etc.)
  • Improved internal documentation and the readme.txt file

1.0.7 – 2024-07-18

  • Initial version
Back to top