NextGEN Gallery
[resolved] click on one thumbnail to show a whole gallery (4 posts)

  1. nhbeachguy
    Posted 1 year ago #

    I've really searched everywhere for this... I'm looking to have one thumbnail that when clicked or even a link that would display a Nextgen Gallery. Helpfully without code hacks.


  2. tizz
    Posted 1 year ago #

    @nhbeachguy What you are asking is not an option, so it's impossible without code hacks.
    The only thing that comes at my mind is (via ATP function from the editor) put one single image of the gallery choosing "1" and select "yes" in add hidden images. In this way the gallery will opens from a single pic, but the pagination will be automatically activated too, so you'll have to exclude it with CSS.
    The bad side of this method is that the page load could slow.

  3. nhbeachguy
    Posted 1 year ago #

    Thanks for the reply @tizz... But I did find something late last night that works and is fairly simple to implement...

    Found it as the last answer on this page

    Simply add this style to your nggallery.css file to display only the first image in the gallery. When you click the thumbnail, the lightbox effect will display all of the images. No PHP code needed:
    /* For NextGen Gallery. Displays thumbnails on a page, and when you click each thumbnail opens it's own gallery. Normally when you insert a gallery, it displays all the thumbnails in the gallery. This hack will hide all the thumbnails except the first one. Make sure you don't display [show slideshow], because that will be the first child. */

    div.ngg-gallery-thumbnail-box { display:none; }
    div.ngg-galleryoverview div:first-child { display:block; }

  4. photocrati
    Plugin Author

    Posted 1 year ago #

    @nhbeachguy - Thanks for the follow-up and sharing what you found. Although referencing NextGEN Legacy (per the date) it is still an interesting work-around for the idea you have.

    - Cais.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic