• Hi!

    I am running a photo blog and I would like to achieve the following:

    • Per post, I would like to add two images, A and B.
    • A should always show first in the post.
    • When clicking on A, the image displayed should switch to B.
    • When clicking on B, the image displayed should switch back to A.

    Are there any plugins or themes that would allow for this?

    If not, can anyone give advice on how to achieve this?

    TIA
    Matt

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Matt,

    I don’t know of any plugins that do exactly this off the top of my head, but this should be reasonably straight forward to accomplish using some JS to stack the images with absolute positioning and change the z-index values of the images when clicked.

    Thanks,
    Lucas

    Thread Starter codejak

    (@codejak)

    Hi Lucas,

    thanks for the suggestion, which does sound reasonable!

    Where/how would this best be implemented in terms of good application architecture practices, though? Ideally in a way that it works across themes.

    Is this something one would want to build a simple plug-in for? Is there some file within a WP installation that serves as a container for custom code?

    TIA
    Matthias

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Two images per post, alternate on click’ is closed to new replies.