Fixing Meow Lightbox on GenerateBlocks Images After BerqWP Caching
TL;DR Meow Lightbox stopped recognizing GenerateBlocks images after BerqWP rewrote their URLs during caching and optimization. Unlike the standard WordPress Image block, the GenerateBlocks image markup did not include the persistent wp-image-{attachment-ID} class. A PHP snippet fixed the issue by adding that class when the block is rendered. This solution may also help GenerateBlocks websites experiencing similar compatibility problems with other lightbox, caching, CDN, or image-optimization plugins that rely on the WordPress Media Library attachment ID. Meow Lightbox worked correctly with standard WordPress Image blocks on my websites, but it would not open images placed with the GenerateBlocks Image block
Read more