Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
Divi Lightbox for Images icon

Divi Lightbox for Images

v2.2.6
by Fernando Tellado · 5.0 (15 reviews)

Divi Lightbox for self linked individual images

4K+ active installs Updated Aug 18, 2026 Tested to 7.1.5 Requires PHP 7.4
Try Demo Download
Pre-installed Ready in ~10s No card
Divi Lightbox for Images

About Divi Lightbox for Images

This plugin allows you to use the native Lightbox script in Divi Theme for individual self linked images, without the need for additional plugins. Simply activate the plugin and it will load the Lightbox script in the footer for better optimization and performance. Please note that this plugin only works with Divi Theme or Divi Builder plugin installed and active.

Screenshots

Divi Lightbox for Images screenshot

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 file

Try other plugins