Hi,
I’m trying to get the webp plugin from hash and salt by @jimbobrjames to work on my website and for some images I want to use a lightbox for which I’m using Fancybox. This requires me to add a custom attribute data-fancybox
to the element.
If I change the webp.php snippet, every image gets a lightbox so I tried copying the snipped and rename it to wepb-lightbox.php but if I try refferencing that in my template like <?php snippet('webp-lightbox', ['sizes' => [1920, 1140, 640, 320], 'src' => 'yourimage.webp', 'type' => 'png', 'class' => null, 'width' => 800, 'height' => 600]) ?>
the images don’t render.
Is there something I’m missing here or how can I make this work?