WP jQuery Lightbox
link to a gallery (6 posts)

  1. fuente_salus
    Posted 4 years ago #

    Hi Ulf, great Plugin!!
    I would like to link a Thumbnail I already have on my page to a gallery. I would like to avoid to write everey single file route with a [roadtrip].
    I am not interested to show the thumbnails of the gallery on my page. I just would like to show a [roadtrip] but without writing the route of everey pic.
    I already tryed with that, but it doesn't work.
    <img class="aligncenter" style="border-width: 0px; vertical-align: middle;" title="On Stage" src="wp-content/gallery/onstage/onstage_inn5.jpg" alt="" width="100" height="150" />


  2. ulfben
    Plugin Author

    Posted 4 years ago #

    You're not making any sense whatsoever. So I'll just answer whatever I believe you're asking.

    WP jQuery Lightbox deals with LINKS-to-IMAGES. You want a set of lightboxed images without displaying them on the page? Then don't use the IMG-tag.

    <a href="whatever.jpg">Click to show first image</a>
    <a href="second_pic.jpg"></a>
    <a href="third_pic.jpg"></a>

    This yields a link to display the first image, and all three jpgs will be in the lightbox-set.

    If this is not what you're looking for, then please try again. For what it's worth; "file route", "[roadtrip]", "i already tried that" and "it doesn't work" doesn't mean anything to me. What did you try? What doesn't work? What did you expect and how does it fail?

  3. fuente_salus
    Posted 4 years ago #

    Don't worry Ulf, I'm just not able to explain what I'm trying to do.
    Thank you for your time, your quick response and the wonderful plugin.
    I will ask for some language help, maybe I'll look for some examples and I'll be back ;)

  4. Tyigah
    Posted 4 years ago #

    Hi Ulf,

    thanks for your wonderful plugin, now I can finally present my galleries the way I always wanted to!
    I'm doing it the way you explained it to fuente_salus, and it works great.
    The ONLY lightbox plugin that works for me, btw!
    ...but, of course, I'm not 100% happy. I'm not even sure that it has to do with your plugin, but I ask for your help anyway in hope for a solution. My problem is that I don't want the large space that all these non-displayed links to images take (for example <a href="second_pic.jpg"></a><a href="third_pic.jpg"></a>).
    How can I link images without letting take them so much space?

  5. ulfben
    Plugin Author

    Posted 4 years ago #

    They shouldn't take up any space at all, provided you don't put any characters between the opening and closing tags the browser won't render them.

    Make sure your links are not wrapped in block elements.
    Check your CSS so it doesn't apply excessive margin / padding or something like that.
    And make sure your editor is not adding crap to your input.

  6. Tyigah
    Posted 4 years ago #

    Hi Ulf again,
    You're right, the links shouldn't take up any space at all. That phrase and the possibility of "crappy input" by my editor made me think again and led me to the solution:
    There were no characters between the tags, no block elements, no CSS-margins - and no crappy input! ;-)
    But, to make the code easier for me to read and to change, I had put every link on a new row - THAT was the problem. All links in a row = no problem!
    Thank you very, very much for your quick response!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP jQuery Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic