WordPress.org

Ready to get started?Download WordPress

Forums

Lightview Plus
Selective disabling of lightbox? (3 posts)

  1. Pepperfly
    Member
    Posted 2 years ago #

    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?

    Thanks.

    http://wordpress.org/extend/plugins/lightview-plus/

  2. Pepperfly
    Member
    Posted 2 years ago #

    Disregard. I thought "Lightview" was the culprit becuase my client had two "lightbox" plugins installed, and I didn't notice the other one... the actual culprit. My apologies.

  3. Pepperfly
    Member
    Posted 2 years ago #

    Nope, nope. I was right the first time. I linearly tested all my plugins and Lightview Plus is definitely the culprit. Not only do I not want specific images to open in a modal-window, I also have a hand-crafted class and rel attribute in my anchor tag that Lightview is wiping out and replacing with it's own class and rel. That is not good. Seems the plugin needs to be on the lookout for that and skip adding it's magic properties. :-)

    I'm hopeful that updates are still being done considering there hasn't been one in the past six months. Please, please let me know that you've read this post and whether or not the solution I suggested will be considered.

    Thanks! :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic