Lightbox Images for Divi Enhanced

Changelog

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

2.2.2

  • Replaced exclusion-based (blacklist) approach with a whitelist strategy for maximum compatibility with third-party modules
  • The plugin now only acts inside Divi text modules, blurb content, and plain WordPress editor content, leaving all other modules untouched
  • Fixes interference with third-party modules like Divi Blog Extra, Divi Machine, and any future modules

2.2.1

  • Fixed lightbox being applied to unintended elements like menu logos, blog thumbnails, third-party module images, and CTA images
  • Removed overly broad .et_pb_module a CSS selector from defaults to prevent interference with non-content modules
  • Added exclusion list for Divi modules that handle their own click behavior (menus, blogs, portfolios, sliders, shop, headers, etc.)
  • Fixed direct image URL links not opening in lightbox because Magnific Popup was not being initialized directly by the plugin

2.2.0

  • Full Divi 5 compatibility: rewritten JavaScript in vanilla JS without jQuery dependency
  • Added support for images linked to WordPress attachment pages (not just direct image URLs)
  • New built-in fallback lightbox for environments where Magnific Popup is not available
  • Improved image URL resolution: extracts full-size image from srcset or strips WordPress size suffix
  • Added debounced MutationObserver for better performance with dynamically loaded content
  • Added accessibility attributes (role, aria-modal, aria-label) to the fallback lightbox
  • New CSS file for fallback lightbox styles
  • jQuery is now an optional dependency (used if available, not required)
  • Keyboard support: Escape key closes the lightbox
  • Added new FAQ entries about Divi 5 and attachment page links
  • Tested up to WordPress 7.0

2.1.1

  • Tested up to WordPress 6.9

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

Plugin Website
Visit website

Version:
2.2.4
Last Updated
April 20, 2026
Active Installs
4000
Requires
WordPress 5.0
Tested Up To
WordPress 7.0
Requires PHP
7.4

Share Post

Join our newsletter.

Get insights into what’s happening at ChangelogWP right in your inbox. We don’t believe in spam.