• Resolved sc456a

    (@sc456a)


    Running NGG 2.0.66 and I’m having an issue getting the albums previews to center on the page here. I want to maintain the three rows and three columns layout, but just center it.

    The other more complicated issue has to do with the thumbnails in the galleries. I’d like to display the title text below each thumbnail but can’t find a way to do that. I’d also like to display the title text below the image when the image is clicked and it’s shown in the lightbox. I’ve found a what to do it with a shortcode if using a gallery directly but not if you go through the album first.

    Thanks!

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @sc456a – You can use custom CSS to “move” the .ngg-albumoverview element around … padding-left: 100px; seem to come pretty close at a quick glance via Chrome’s developer tools. See under Gallery > Other Options > Styles as one possible place to work from.

    As to the thumbnail title working from the shortcode but not from the album, look under Gallery > Gallery Settings > NextGEN Basic Thumbnails and ensure those settings are what you want the gallery to use when viewed from an album.

    You can always modify individual Thumbnail displays via the IGW (“green button”) if you insert those specifically somewhere else.

    – Cais.

    Thread Starter sc456a

    (@sc456a)

    Thanks photocrati, but how do I display the image title text below the thumbnails in each gallery and also when they are clicked?

    Plugin Contributor photocrati

    (@photocrati)

    @sc456a – Creating a custom template (probably easiest if based on the thumbnails-caption.php template) to display the image’s alttitle property would be the most straight forward.

    Working from the premise of “also when they are clicked” meaning when the Lightbox is opened, you will have to choose one of the bundled Lightbox libraries that shows this detail as well, or possibly find another Lightbox Effect that can work with NextGEN Gallery to show this detail.

    – Cais.

    Thread Starter sc456a

    (@sc456a)

    I used /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/gallery-caption.php and added <?php echo esc_attr($image->alttext) ?> to line 53 which produced the desired result of adding the title text below the images. However, the template seems to be ignoring the set image dimensions when using the override thumbnail settings. If that’s due to using the template, how can I specify the dimensions? Thanks!

    Plugin Contributor photocrati

    (@photocrati)

    @sc456a – Did you try hard-coding the dimensions into the template?

    – Cais.

    Thread Starter sc456a

    (@sc456a)

    Cais:
    I did, but the thumbnails are all grainy looking because it’s just stretching them: https://goo.gl/z6ZCVV

    Plugin Contributor photocrati

    (@photocrati)

    @sc456a – What appears to be happening is the image is still being rendered to the screen as 120 x 90 while your template is re-sizing it to 250 x 120. Since those two sizes are not the same aspect ratio you are seeing the “grainy” effect.

    Try regenerating the thumbnails for the gallery to the 250×120 size and not using the hard-coded sizes in the template.

    – Cais.

    Thread Starter sc456a

    (@sc456a)

    …but I had to hard code the size because the plugin won’t allow me to set the size when using the album shortcode and I had to use the custom tempalte to add the image title code below the thumbnails. I removed the hard coded size from the template and I have the size set to 250×120 everywhere I can find and I’ve cleared the cache but it’s still showing the 120×90 thumbnail size.

    Plugin Contributor photocrati

    (@photocrati)

    @sc456a – Did you go under Gallery > Manage Galleries … select gallery; choose “Create new thumbnails” under Bulk Actions and click Apply.

    You would set the thumbnail size for the images here (with a fixed ratio) … and afterward “Save Changes”. At this point you may also need to clear the image cache under Gallery > Other Options > Miscellaneous as well.

    Sometimes the browser cache may need to be cleared.

    – Cais.

    Thread Starter sc456a

    (@sc456a)

    I did look there, under Gallery > Manage Galleries … select gallery; but I didn’t see a button. I just saw the option under Bulk Actions and ran it and it worked. I’d suggest a button be placed next to “Scan Folder…” which would simplify the process a bit. Thanks!

    Plugin Contributor photocrati

    (@photocrati)

    @sc456a – That would be an interesting idea to share here: https://www.nextgen-gallery.com/feature-voting/

    Thanks!

    – Cais.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Alignment and title issues using albums’ is closed to new replies.