Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Ulfsby Webdesign

    (@sulfsby)

    Anybody knowing how to make visitors view the image description for each image?
    https://ulfsby.no/

    Thread Starter Ulfsby Webdesign

    (@sulfsby)

    I found the solution in the documentation. Add template=caption in the shortcode:
    [nggallery id=1 template=caption]

    Also, for beginners, you have to go to the gallery where your photos are and add the description there and not in the media section as it won’t show from there.

    Stig, thanks for sharing “template=caption” with us. It works, but one problem: each caption is not wrapping to stay directly under its photo. Do you (or anyone else) know how to make each photo’s caption stay directly under its photo?

    I’d also be interested to know how to change the size and style of the font used in the captions. Thanks.

    Jim,
    You’d need to edit `…./nextgen-gallery/view/gallery-caption.php’.

    Did you mean you wanted the caption text to be as wide as the thumbnail? I wanted mine wider than the thumbnail so you’ll need to play with the widths below (using firebug or similar makes it easy).

    To set font size (and you could presumably add the font type) and the div container for the image and text…
    Original code.
    <div class="ngg-gallery-thumbnail" >
    My code.
    <div class="ngg-gallery-thumbnail" style="font-size: 12px; width: 150px; height: 180px;">

    To set the width of the text…
    Original.
    <span><?php echo $image->caption ?></span>
    My code.
    <div style="width: 130px;"><?php echo $image->alttext ?></div>
    I use alttext above but you can stick with caption.

    Here’s the end result …. Toshi Yoshida Woodblocks. It looks so much better to me now the font size is smaller.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: NextGEN Gallery] How do I show image dscription?’ is closed to new replies.