Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #168900

    Hi,
    in a text link I would like to link to a jpg image. Today when I link to http://www.example.com/wp-content/uploads/month/day/example.jpg the image will open in a lightbox window.

    How can I force the system to download that image?

    Tx,
    Frank

    #169140

    Hello frankwelschlehmann!

    You can add the rel=”noLightbox” on the anchor tag.

    <a rel="noLightbox" href="LINK HERE">LINK</a>

    Cheers!
    Ismael

    #169347

    Thank you, but I can not get that working.
    My life example:
    Test von einem <a rel="noLightbox" href="http://www.carrington-brown.com/wp-content/uploads/2013/09/Carrington-Brown_Frame_130x180_%C2%A9_Jonny_Soares.jpg">Bild download</a>

    This link still opens the lightbox.

    Tx,
    Frank
    Enfold ver 2.3.1, WP 3.6.1

    #169363

    Ok, did some searching in the forum and found the solution:

    As the suggested ‘rel=”noLighbox”‘ does not work in my case.
    Whereas class=”noLighbox” works ok.

    So my solution is:

    <a class="noLightbox" href="LINK HERE">LINK</a>

    Have fun,
    Frank

    #169402

    Hey!

    Yep, that is correct. The format to remove the lightbox is:
    <a class="noLightbox" href="http://www.youtube.com/">Youtube</a>

    Best regards,
    Devin

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Force download an image’ is closed to new replies.