Add CSS class to trigger lightbox
This awesome plugin should have a setting to add CSS classes to trigger the lightbox.
This would give the ability to display almost any theme or plugin media element without need of changing themes and plugins core code to make them all have the same rel value.
When there are several sources of media, most likely there will be several lightbox scripts and several rel denominations.
With CSS classes we can target them all and then dequeue their JS lightbox scripts at theme’s functions.php and have only one working sitewide lightbox without hacking any source code.
- The topic ‘Add CSS class to trigger lightbox’ is closed to new replies.