Add Lightbox To WordPress Gallery Block

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 :

  1. Link to image file
  2. 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.

Download Folder

Related Tutorials

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.