WordPress.org

Ready to get started?Download WordPress

Forums

File Gallery
Create gallery with one preview image only? (4 posts)

  1. RoboTH
    Member
    Posted 1 year ago #

    Hi,

    is there a way to create a gallery that has one static preview image, that, when clicked, opens a lightbox with all items of the gallery?
    Or would I have to instert an image that links to another site which includes the gallery?

    Thanks in anticipation.

    http://wordpress.org/extend/plugins/file-gallery/

  2. Elle Bee
    Member
    Posted 1 year ago #

    I have the same question.

  3. Aesqe
    Member
    Plugin Author

    Posted 1 year ago #

    @RoboTH, @lbergren: that can be done quite easily, but you'll need to create your own custom template, or modify your theme's css file.

    The easiest way to do this would be to hide all images in the gallery by using CSS, and apply a different classname to the the first image in each gallery and make it visible (or use :first-child).

    If you don't want the static preview image included in the gallery, then that's a different, and a bit more complicated story :)

  4. RoboTH
    Member
    Posted 1 year ago #

    Thanks for your replay! I'm not that good in CSS yet but I will give it a try :-)

    Happy New Year btw!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic