• Resolved bxwebber

    (@bxwebber)


    I wonder if there is a way to achieve the following with this plugin:

    – Show the first image (of 4) of a lightbox series in the post, clicking it shows the lightbox series.
    – Have a text link below this image to the lightbox also showing the whole series, also starting with this first image.
    So: clicking the image in the post or the text link gives the same result.

    What I’ve come up with myself is this:

    <a href=“URL FIRST IMAGE“ rel="lightbox-1”>
    	<img src="URL FIRST IMAGE" alt="" width="802" height="1200" class="size-full wp-image-1940" />
    </a>
    
    <a href=“URL SECOND IMAGE” rel="lightbox-1”>VIEW THIS SERIES</a>
    
    <a href=“URL THIRD IMAGE“ rel="lightbox-1”></a> 
    
    <a href=“URL FOURTH IMAGE” rel="lightbox-1”></a>

    … but obviously when you click the text link the lightbox starts with the second image, showing the first image last, which is not what I want. When I would put the first image url in the text link this first image shows up twice in the lightbox.

    Is there a way to solve this?

Viewing 1 replies (of 1 total)
  • Thread Starter bxwebber

    (@bxwebber)

    Okay, I solved it myself.
    Included the text VIEW THIS SERIES as an :after element to the first image link.
    Duhh.. ??

Viewing 1 replies (of 1 total)
  • The topic ‘First image in post plus text link to series?’ is closed to new replies.