When I add the following code Lightview greps the anchor link and sees filename.jpg as an image file type so is automagically adding class=”lightview” in the source, which causes the image to open in a lightbox:
<a href="http://www.mydomain.com/download.php?file=path/to/filename.jpg">Download Image</a>
In this case, I don’t want to open the image in a lightbox. I’m trying to force a download instead. I can force download non-image file types fine. This is only a problem for image file types.
How can I prevent the class from being added or otherwise disable the image from opening in a lightbox when I use “download.php?file=” in the anchor link?
- The topic ‘[Plugin: Lightview Plus] Selective disabling of lightbox?’ is closed to new replies.