1

How can I make WP Featherlight plugin for WordPress work with images like with galleries? It allows to scroll images only when they are placed to a post as gallery. But how can I make it scroll all images in the post like all others similar plugins do?

You can download the plugin here: https://wordpress.org/plugins/wp-featherlight/

Dmitry
  • 14,306
  • 23
  • 105
  • 189

1 Answers1

0

Just need to call featherlightGallery() for all images. It can be done by changing the code of the findGalleries function:

function findGalleries() {
    // Treat all images like a gallery
    $body.find( 'a[href]' ).filter( testImages ).featherlightGallery();
    ...
}

Optimized version of the code above for wpFeatherlight.pkgd.min.js file:

function g(){j.find("a[href]").filter(d).featherlightGallery();...}
Dmitry
  • 14,306
  • 23
  • 105
  • 189