Lightbox Images for Divi Enhanced
Lightbox Images for Divi Enhanced
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.
Installation
- Important: Make sure you have either Divi theme active OR Divi Builder plugin installed and active before proceeding
- Upload the
lightbox-images-for-divi-enhancedfolder to/wp-content/plugins/directory - Activate the plugin via the ‘Plugins’ menu in WordPress
- The plugin will automatically check for Divi compatibility and prevent activation if requirements are not met
- That’s it! All your auto-linked images will now open in a Divi lightbox
Faq
The plugin will not activate and will show an error message explaining that either Divi theme or Divi Builder plugin is required.
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.
The plugin will automatically deactivate itself and show an admin notice explaining why it was deactivated.
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.
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;
}
Yes, as long as you have the Divi Builder plugin installed and active, the plugin will work regardless of your active theme.
Reviews
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
perfect use-case
By sincjane on November 27, 2020
Sin complicaciones
By rafagama54 on July 16, 2020
Excellent, please keep it updated!
By Phenotype_X on October 16, 2019
Super Easy and Incredibly Useful
By sheilaintc on February 18, 2019
Perfect!
By rextherunt on July 16, 2018
Thank's!
By doubled on April 27, 2018
Changelog
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_scriptfor 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.txtfile
1.0.7 – 2024-07-18
- Initial version
