Beskrivning
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
Vanliga frågor
-
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_selectorsfilter. You can use this filter in your child theme’sfunctions.phpfile 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.
Recensioner
Bidragsgivare och utvecklare
”Lightbox Images for Divi Enhanced” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.
Bidragande personer”Lightbox Images for Divi Enhanced” har översatts till 9 språk. Tack till översättarna för deras bidrag.
Översätt ”Lightbox Images for Divi Enhanced” till ditt språk.
Intresserad av programutveckling?
Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.
Ändringslogg
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

