Skip to content

Adding lightbox to all content area images

Mikk Pristavka edited this page Jul 12, 2017 · 1 revision

All required assets can be found here: https://gist.github.com/mikkpr/b6361f4f394e57e518ddfe6b2593953e

photoswipe.css, photoswipe.js, default-skin.png, preloader.gif and default-skin.svg should all be added to the site's template assets.

The photoswipe.tpl component should be included only on the pages where this behaviour is necessary - it includes links to the .js and .css files and runs a script to collect all images and add them to the lightbox.

Clone this wiki locally