arnowelzel / lightbox-photoswipe

Integration of PhotoSwipe to WordPress
https://arnowelzel.de/wp/en/projects/wordpress/lightbox-with-photoswipe
GNU General Public License v2.0
28 stars 7 forks source link

Add option to ignore image links with specific CSS classes #36

Open arnowelzel opened 4 years ago

arnowelzel commented 4 years ago

Also see here: https://wordpress.org/support/topic/lightbox-creates-gallery-of-all-images-on-page-not-just-in-the-gallery

In some cases it might be neccessary to ignore image links if they contain a specific class attribute. Some themes or plugins generate a "related posts" section with a featured image where the image is added as linked image eventhough clicking it will open the post and not an image.