WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
View images in lightbox direct from album page (11 posts)

  1. s872
    Member
    Posted 2 years ago #

    Hi there,

    A client of mine has asked if it's possible to view images as follows:

    1. Person visits http://www.candicecolley.co.uk/gallery

    2. They click on an album

    3. The first image in the gallery opens in Lightbox (and does not take you to the gallery page).

    4. They can then click through the lightbox to view all images in that gallery (similar to how it works on Facebook)

    Hope this makes sense...?

    Cheers,
    Simon.

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

  2. s872
    Member
    Posted 2 years ago #

    Hoping somebody can help with this...

    When somebody clicks on the 'Support Committee' album on this page, I don't want them to be taken to a new page or see the photos appear (as currently) on the same page.

    I'd like the first picture in the album to pop up and for the user to be able to scroll through the committee member's images via the lightbox.

    Eternally grateful for any helps on this.

    Thanks,
    Simon.

  3. azn137
    Member
    Posted 2 years ago #

    Try Options >> Gallery >> The album will not link to a gallery subpage. The gallery is shown on the same page.

  4. BeeGirl3
    Member
    Posted 2 years ago #

    I'm actually in the process of doing the same thing right now. I don't have it completed, but I did a mini test and it seems to be on the right track.

    1. Read this thread (the second to last response). Thats what got me on track

    2. Instead of changing gallery.php, create a custom template to style how you want, nextgen instructions here

    3. You'll probably end up wanting to change the look of the shutter/thickbox. I'm probably going with Thickbox See this thread

    I hope it all makes sense to you! Pretty straight forward, just a little tedious and time consuming

  5. s872
    Member
    Posted 2 years ago #

    Again, thanks for the pointers! Will take a look :)

  6. s872
    Member
    Posted 2 years ago #

    Managed to get the gallery page just showing 1 thumbnail image and when clicking on the thumbnail you can view the gallery via the lightbox - great and thanks!

    How can I now display the images on the gallery page inline instead of a list? I've tried updating CSS in a couple of places but to no success.

    view here

    Also, if possible, how can I display the gallery title as I have done below each gallery image but without it being a hyperlink?

    Thanks,
    Simon.

  7. BeeGirl3
    Member
    Posted 2 years ago #

    Glad you got it working!

    1. The CSS is the way to go, i added the following to my custom theme stylesheet - (my containing div has the id "content", placing this before the image container class supersedes the default styling in the plugin folder.):
    #content .ngg-galleryoverview {
    float:left; /*THIS IS WHAT YOU WANT */
    width:160px;
    height:200px;
    margin:5px 10px 10px 0;
    clear:none; /*AND INCLUDE THIS*/
    text-align:center;
    }
    #content .ngg-gallery-thumbnail img { /*REMOVES WHITE BORDER */
    background:none;
    display:block;
    margin:0;
    padding:0;
    }

    2. To unlink the gallery title - did you create a custom gallery template in the nextgen view folder? if so, it looks like your title follows a tag after the image, all within the <a> tag - (remove br and put title outside of a tags. Paste code if you want me to point out where.

    I hope this helps!

    [Moderator Note: Please post code or markup snippets between backticks or use the code button.]

  8. BeeGirl3
    Member
    Posted 2 years ago #

    - For number 1, don't use #content, you'll want to use #wrapper .ngg-galleryoverview instead. try with just float:left; and clear:none; to get it working and tweak from there.

  9. s872
    Member
    Posted 2 years ago #

    Works like a dream! Thank you sooooo much for all of your help :-)

  10. mvandemar
    Member
    Posted 1 year ago #

    For anyone else searching, here is a working solution including all of the code for the new template and a function to be added to your theme's functions.php:

    http://wordpress.org/support/topic/plugin-nextgen-gallery-nextgen-gallery-open-album-in-lightbox

    -Michael

  11. jay1318
    Member
    Posted 1 year ago #

    The fact that this isn't a standard function is amazing to me. Very cool for everyone to offer help. But what a convoluted and ridiculous solution for something that should be the most basic of functions in the first place.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic