Descripción
El propósito principal del plugin “Lightbox Images for Divi” es ampliar la funcionalidad nativa de caja de luz de Divi a todas las imágenes auto-enlazadas, no solo a las galerías de Divi.
Requisitos:
Este plugin requiere UNO de los siguientes para ser instalado y activo:
* Tema Divi (versión 4.10 o superior).
* Plugin Divi Builder (versión 4.10 o superior).
El plugin comprobará automáticamente estos requisitos durante la activación y no se activará si no se cumplen.
Características principales:
- Full Divi 5 Support: Works with Divi 5 pages, including backwards compatibility mode. No jQuery required — the plugin works in vanilla JavaScript with an elegant built-in lightbox when Magnific Popup is not available
- Attachment Page Links: Now handles images linked to WordPress attachment pages (not just direct image URLs), resolving the full-size image automatically
- Comprobación de dependencias: Verifica automáticamente si el tema Divi o el plugin Divi Builder están activos antes de permitir la activación.
- Extended Compatibility: Works with the Divi or Divi Builder theme, compatible with Divi 4.10+ and Divi 5
- Native Integration: Uses Divi’s Magnific Popup when available, falls back to a lightweight built-in lightbox otherwise
- Fácil de usar: Solo tienes que instalar y activar el plugin. No se requiere ninguna configuración adicional.
- Optimized Performance: Vanilla JavaScript with no hard dependencies. CSS and JS loaded conditionally
- Ready for the Future: Works in both Divi 4 (jQuery/Magnific Popup) and Divi 5 (vanilla JS fallback) environments
- Escalable: Incluye un filtro (
ayudawp_lightbox_selectors) que permite a los desarrolladores personalizar los selectores CSS para incluir o excluir elementos específicos.
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 a lightbox effect.
A diferencia de la funcionalidad por defecto de Divi, que a menudo limita este efecto a las galerías, este plugin lo amplía a todas las imágenes individuales, proporcionando una experiencia visual coherente y atractiva.
El plugin es ideal para fotógrafos, blogueros y cualquier usuario de Divi que desee ofrecer una experiencia de visualización de imágenes más pulida y profesional sin necesidad de configuraciones complejas o plugins de galería adicionales.
Soporte
Need private support or custom development?
Do you need one-on-one help, priority troubleshooting, or a custom feature, integration, or tweak built specifically for your site? I offer private support and custom development. Just contact me and tell me what you need.
¿Necesitas ayuda o tienes sugerencias?
¿Te gusta el plugin? ¡Déjanos un comentario de 5 estrellas y ayuda a correr la voz!
Acerca de AyudaWP
Somos especialistas en plugins de optimización de seguridad, SEO y rendimiento para WordPress. Creamos herramientas que solucionan problemas reales a los propietarios de sitios WordPress manteniendo los más altos estándares de programación y requisitos de accesibilidad.
Instalación
- Importante: Asegúrate de que tienes el tema Divi activo O el plugin Divi Builder instalado y activo antes de continuar.
- Sube la carpeta
lightbox-images-for-divi-enhancedal directorio/wp-content/plugins/. - Activa el plugin desde el menú “Plugins” de WordPress.
- El plugin comprobará automáticamente la compatibilidad con Divi e impedirá la activación si no se cumplen los requisitos.
- That’s it! All your auto-linked images will now open in a lightbox
FAQ
-
¿Qué pasa si no tengo Divi instalado?
-
El plugin no se activará y mostrará un mensaje de error explicando que se requiere el tema Divi o el plugin Divi Builder.
-
¿Puedo usar este plugin con otros temas?
-
No, este plugin está diseñado específicamente para trabajar solo con el ecosistema Divi (tema Divi o plugin Divi Builder). No funcionará con otros temas WordPress.
-
¿Qué pasa si desactivo Divi después de instalar este plugin?
-
El plugin se desactivará automáticamente y mostrará un aviso al administrador explicando por qué se ha desactivado.
-
¿Es compatible con Divi 5?
-
Yes, the plugin fully supports Divi 5. It works both in backwards compatibility mode (using Magnific Popup) and in native Divi 5 pages (using a lightweight built-in lightbox). No jQuery is required.
-
Does it work with images linked to attachment pages?
-
Yes, since version 2.2.0 the plugin handles both direct image URLs (e.g. photo.jpg) and WordPress attachment page links. The full-size image is resolved automatically from the embedded image element.
-
¿Cómo puedo personalizar los selectores de imágenes?
-
Para usuarios avanzados y desarrolladores, el plugin proporciona un filtro
ayudawp_lightbox_selectors. Puedes utilizar este filtro en el archivofunctions.phpde tu subtema para agregar o modificar los selectores CSS que el plugin utiliza para identificar imágenes. Por ejemplo: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; } -
¿Este plugin funciona con el plugin Divi Builder en temas que no sean Divi?
-
Sí, siempre y cuando tengas el plugin Divi Builder instalado y activo, el plugin funcionará independientemente de tu tema activo.
Reseñas
Colaboradores & Desarrolladores
“Lightbox Images for Divi Enhanced” es software de código abierto. Las siguientes personas han contribuido a este plugin.
Colaboradores“Lightbox Images for Divi Enhanced” ha sido traducido en 9 idiomas. Gracias a los traductores por sus contribuciones.
Traduce “Lightbox Images for Divi Enhanced” a tu idioma.
¿Interesado en el desarrollo?
Revisa el código, echa un vistazo al repositorio SVN, o suscríbete al registro de desarrollo por RSS .
Historial de cambios
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_idquery 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.jsandmagnific_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

