• My home page has a small image gallery. Clicking on any image in this gallery opens up a gallery page with the same (and additional) images. The gallery page uses jQuery to achieve a ‘lightbox effect’ only when one of its own images is clicked.

    On the homepage, when an image is clicked, I need to pass the post ID of the clicked image within the link to the gallery page. Then I need the gallery page to use that postID to display the image (that was clicked on the home page) in a lightbox as soon as the gallery page loads.

    I’d appreciate a very clear explanation of how to achieve this.

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

    (@eisenbart)

    Maybe I should clarify…
    Currently, the lightbox only shows when an image within the gallery page is clicked. What I need is this…
    When the image on the homepage is clicked it should open the gallery page, with the gallery page’s version of that same image opened in a lightbox.

    For that, I assume I have to pass the image ID (or post ID as the homepage gallery images are tied to posts) through the link, and then the gallery page needs to somehow grab that ID from the link to ‘lightbox’ that image. I don’t know how to pass that id in a link, or make the gallery page make use of that id.

    I hope that’ s a little clearer.

Viewing 1 replies (of 1 total)
  • The topic ‘How to pass a postID within a link, and make use of it’ is closed to new replies.