开发者 |
fernandot
ayudawp |
---|---|
更新时间 | 2025年9月12日 06:26 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
ayudawp_lightbox_selectors
) that allows developers to customize CSS selectors to include or exclude specific elementslightbox-images-for-divi-enhanced
folder to /wp-content/plugins/
directoryThe 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.
assets/js/lightbox-images-for-divi.js
)wp_enqueue_script
for more efficient script loading and following WordPress best practicesayudawp_lightbox_selectors
) to allow customization of selectorsreadme.txt
file