Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter carbon179

    (@carbon179)

    Whoops, code should have been:

    <div style="display: none;">[nggallery id=20]</div>
    
    <a href="/link-to/image.jpg" rel="[lightbox_set20]"><img class="aligncenter  wp-image-1565" title="Read Here" src="/link-to/image.jpg" alt="" width="320" height="305" /></a>
    Thread Starter carbon179

    (@carbon179)

    I think I’ve answered my own question –

    Switch the order of where the gallery appears on the page to after where the link appears, i.e:

    <a href="/link-to/image.jpg" rel="[lightbox_set20]"><img class="aligncenter  wp-image-1565" title="Read Here" src="/link-to/image.jpg" alt="" width="320" height="305" /></a>
    
    <div style="display: none;">[nggallery id=20]</div>

    Then, make the href=”” URL an image in the gallery, and the img src=”” can be any image you want the thumbnail link to be. To prevent a duplicate image from appearing in your gallery, remove whatever image you’re using as the starting image set as the href=”” url from your gallery.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Open Gallery from Image/Link – Won't Start w/First Image in Gallery’ is closed to new replies.