The code in this mini plugin enables you to add the latest CDN hosted Light Box 2 jQuery to your WordPress gallery block. The code works with the following link settings including :
- Link to image file
- Link to attachment page
Demo Video
Shows the gallery block added to a page and gallery images displaying in a lightbox once the Lightbox Gallery Block plugin is activated.
Installation
Install the zip folder as a new plugin or copy and paste the code from the plugins.php file to the end of your child themes functions file. You’ll also need to copy over the gallery-block.js file to your child theme.
Was This Tutorial Helpful?