Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4400

    Hi There-

    I would like to alter the code so that when you click on the Preview Image I would like also to be able to scroll through the other images that are on the pages. I am sure there must be a way to do this, though I don’t know how.

    The code for the preview located on the single.php is:

    Code:
    <?php
    if($preview_image)
    {
    echo ‘<div class=”entry-previewimage rounded preloading_background”>';
    echo $preview_image;
    echo ‘</div>';
    }

    ?>

    Kind Regards,

    Daniël

    #46184

    Hey,

    just add

    rel="lightbox[grouped]"

    to your image links within the post.

    I.e. the code would look like:

    <a rel="lightbox[grouped]" href="http://www.kriesi.at/themes/newscast/files/2010/03/content_pic1.jpg" title="Apple rebrands" >
    <img src='http://www.kriesi.at/themes/newscast/files/2010/03/content_pic1-180x180.jpg' alt='' title='Apple rebrands to Banana!' height='180 ' width='180' />
    </a>

    #46185

    hmmmm… that seemed a little too easy…. That worked liked a charm… Thanks a bunch… ;-)

    #46186

    Glad that I could help you :)

    #46187

    so this has worked out great,…. is there not anyway to get it to do it automatically when i add an image. it seems cumbersome to have to add this code manually every time i add an image to the page.?!?!?!

    #46188

    You can try plugins like: http://wordpress.org/extend/plugins/add-lightbox-title/ to add the rel attribute automatically.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Lightbox to Show Preview Image AND other images on Post’ is closed to new replies.