godaddy-wordpress / coblocks

A suite of professional page building content blocks for the WordPress Gutenberg block editor.
https://wordpress.org/plugins/coblocks/
GNU General Public License v2.0
749 stars 145 forks source link

enable the lightbox script to load for all CoBlocks galleries #2589

Closed AnthonyLedesma closed 9 months ago

AnthonyLedesma commented 9 months ago

Description

Fixes #2571 Not all galleries properly listed the 'Lightbox' script to load under the 'viewScript' block.json property. Adding the script allows the Lightbox to function as expected with all CoBlocks galleries.

Screenshots

LightBoxAllGalleries

Types of changes

Change here to block.json to allow for proper loading of the 'lightbox-script'.

How has this been tested?

Tested manually.

Acceptance criteria

Should allow the Lightbox on all CoBlocks galleries if only that single gallery is present on the page or all of them. Each block now ensures the script is loaded.

Checklist: