• Hi everyone, I searched through all the previous posts and didn’t see an answer for this, but if it’s a repeat question I apologize.

    I would like my gallery template to display the caption beneath each thumbnail. Some pictures may not have any captions, and some might have captions that are up to 15 words long.The problem is that captions of differing lengths push down their individual divs and prevent images from being displayed below them, so they get bumped one slot to the right. Here’s a screenshot:

    https://adsmithdev.com/nextgen.jpg

    Since each div is generated with the exact same code, there’s no way to style it to give it space aside from assigning each div or caption span with a height, which I don’t want to do.

    The only solution I can think of is to change the code generated by the plugin to put the divs into a table. Perhaps with some counter variable that increments with each image, so every 5 images (in my case) it would close the table row and start a new one. The problem is, naturally, I don’t know how to code this.

    This is the only solution I can think of, but has anyone else already resolved this problem somehow? Or have any advice for how to go about doing it?

    Thanks for any help.
    Aaron

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yeah. If you use descriptions, like I also do, I’ve found that they can be too long for the frame and the navigation links. I’m hoping there will be a pretty fix for it in the next version, if there is one. ??

    The program is so great in all other ways that I’m willing to wait for, and hope for, a fix in a future update. NextGEN represents the best integration of photo gallery software into the WordPress platform that I’ve seen.

    I can’t code it myself either. I know I’d screw everything up. But will be looking forward to a fix one way or another.

    Hi,
    i dont know if you would like that but you can try to define a fixed width and height t in your chosen stylesheet for the gallery page
    gallery->style.
    look for :
    .ngg-gallery-thumbnail-box {
    and put inside
    for example
    width:205px;
    height:310px;

    which should be the maximum height that you need for your longest descriptrion. Not a perfect solution as every thumb will take the same room now but they will be in order.

    best regards
    bee

    Thread Starter theadsmith

    (@theadsmith)

    Hi Bee,
    I considered that but then it would give space for captions whether or not captions where present, which I don’t think would look very good. Ideally if one of the pictures in a row had a caption, every thumbnail in that row would have the same amount of caption space just to look even, and if no picture in a row of thumbnails had a caption then there would be no space at all. I’m still trying to figure something out.
    Aaron

    Hi,
    i’m really not shure what to do – the first thing that comes to my mind is to put a certain amount of pictures into (a) table cell(s)and after that geginning a new row… i’m pretty shure that there could be a better more elegant way.
    What i’m also pretty shure about that whatever should be done it should be in nggfunctions.php -> function nggCreateGallery

    best regards
    bee

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: NextGEN Gallery] Captions breaking gallery layout’ is closed to new replies.