WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
How do you add captions underneath the thumbnails and more.. (22 posts)

  1. ceeeeg
    Member
    Posted 3 years ago #

    Hi,

    I was wondering how do you add the Title of the Image underneath the thumbnails?

    Also I would like to have the Description of the Gallery show up under the gallery?

    Is there a way to do this? The site is at http://motionmediaseo.com/staging/arievanselm/gallery-1

    An example of the titles begin underneath is at http://2taylors.net/africa-2009/botswana/

    Thanks for your help!!

  2. bplazar
    Member
    Posted 3 years ago #

    Try:

    [nggallery id=1 template=caption]

  3. ceeeeg
    Member
    Posted 3 years ago #

    ooh, that was close, but is there a way to only have the title and not the description. Is there a short code for that? Thanks again for your help!

  4. ceeeeg
    Member
    Posted 3 years ago #

    Is there a listing for short codes somewhere that may be able to help?

    Thanks!

  5. maxhugen
    Member
    Posted 3 years ago #

    I too would like to know how to display only the Title underneath thumbnails?

  6. ceeeeg
    Member
    Posted 3 years ago #

    Also, can you have the title show if you add just one image? Also, is there a way to have the slide show widget randomize the images? Thanks!

  7. maxhugen
    Member
    Posted 3 years ago #

    Bump!

  8. Liz5264
    Member
    Posted 3 years ago #

    Hi

    Seeing as you are giving my page as an example I thought I should tell you what I did.

    Edit the page where you want the photos with captions and put this in the part where you would type regualr text.
    [nggallery id=3 template=caption]

    The id=3 refers to the gallery number, so for me, my Botswana photos are in my gallery number 3.

    The "caption" part is whatever you enter in the top title part for each photo, not the larger field where you would type in a longer description.

    Hope that helps.

  9. akanowicz
    Member
    Posted 3 years ago #

    I'm running 3.0 and ngg 1.5.5 and that is only partially working.
    See leogoode.com/paintings/

    The thumbnails are being floated left, so the descriptions are beside the image, and throwing off the spacing of the other thumbnails.

    And the title is not showing (even using template=caption) but only the description.

    I could use some help to. Thanks!

  10. matius
    Member
    Posted 3 years ago #

    Any luck akanowicz?

    Seems like it should be fairly routine... captions.

  11. Toshi Yoshida
    Member
    Posted 3 years ago #

    Hi, I'm having a problem with the shortcode
    [nggallery id=x template=caption] as well. Instead of getting just the alt tag (which is what I think Liz5264 was referring to)I get the alt tag and the full title/description.

    Liz do you actually have anything in the description field for your images? If so, then you don't appear be displaying it anywhere?

    Also my gallery works differently.
    You go http://2taylors.net/africa-2009/botswana/ then clicking an image takes you straight to the JPG page.

    I go http://japanese-art.blog107.com/gallery/woodblock-prints/toshi-yoshida/ then selecting the first thumbnail takes me to http://japanese-art.blog107.com/nggallery/page-23/image/26/ (which I need as I want to show the full image description) then clicking the image takes me to the JPG page.

    Regards, Mike.

  12. Toshi Yoshida
    Member
    Posted 3 years ago #

    Hi again,
    I've just looked at http://nextgen-gallery.com/templates/caption/ and do note that they refer to the captions as Descriptions so it seems the shortcode is working to spec.
    Regards,
    Mike.

  13. Toshi Yoshida
    Member
    Posted 3 years ago #

    Hi once again,
    I updated my nextgen plugin file gallery-caption.php replacing the line
    <span><?php echo $image->caption ?></span>
    with
    <div style="height: 100px; width: 200px; text-align:left;"><?php echo $image->alttext ?></div>

    Just replacing 'caption' with 'alttext' does the job. Everything else is my attempt at trying to get it to look nice. If someone knows how to stop the text overflowing the border, or format it better it would be nice to know.

    I also set the Number of columns to 0 in the gallery settings to let the plugin workout how many columns to fit on the page.

    See http://japanese-art.blog107.com/gallery/woodblock-prints/takeji-asano/ for how the above example looks.

    Regards,
    Mike.

  14. jmahaney
    Member
    Posted 3 years ago #

    Mike,
    The caption info was helpful. I visited your site and really like the set-up for clicking on a thumbnail & going to the image with text, then clicking takes you to the jpg. I'd like some help on how to do this, and I suppose the editing takes place in a php page? I'm interested in having the image smaller with a paragraph or 2 of text with it.
    Thanx, Joe

  15. Toshi Yoshida
    Member
    Posted 3 years ago #

    Hi Joe,
    I'm not very familiar with NextGEN but hopefully this will help.

    (1) Smaller Images. I bulk converted my images with Irfanview setting the output size to 50% then zipped them (one gallery per zip file) and uploaded them. NextGEN can resize images Gallery-->Options-->Images. I've never used it so can't comment on how well it works.

    (2)To add or edit the image text/description I used Kompozer wysiwyg editor to set up my description and copy/pasted the html source over to NextGEN (Gallery-->Manage Gallery then select a gallery).

    (3) "clicking on a thumbnail & going to the image with text, then clicking takes you to the jpg." I'm not sure how I did this - eek! Maybe it's the default? I do note however, that after looking at 2 or 3 other NextGEN users galleries only mine worked this way. On their galleries clicking on a thumbnail takes you straight to the jpg. I guess this is controlled in the gallery options - I can make screen shots of my settings if you need them.

    (4) You mentioned editing taking place in a php page. I wasn't sure if you meant the descriptions which is covered in point 2 above or editing the gallery-caption.php file. For the later I just went to Plugins-->Editor selected the NextGEN Gallery plugin then selected nextgen-gallery/view/gallery-caption.php and edited it there after copying/pasting the existing fle into notepad as a backup first.

    Regards,
    Mike.

  16. jmahaney
    Member
    Posted 3 years ago #

    Hello Mike,
    With your 3rd point, seems as though you have a jeanie in a bottle? I'm guessing the screen shots you mention will be from your work in editing the gallery-caption.php file that you describe in pt. 4, and sure I'd like a look?
    Thanx, Joe

  17. Toshi Yoshida
    Member
    Posted 3 years ago #

    Hi Joe,
    The screen prints I was thinking of are my gallery plugin settings so you can try and reproduce the "clicking on a thumbnail & going to the image with text, then clicking takes you to the jpg" effect. If you want them let me know.

    There's not really anything to see for the gallery-caption.php edit which was documented earlier.

    One other thing I did for my page presentation was to turn off sidebars. I thought it looked better. Turning sidebars off or on seems to break my page links so I had to update permalinks after doing that.
    Regards,
    Mike.

  18. jmahaney
    Member
    Posted 3 years ago #

    MiKe,
    Sure, the screen shots for the gallery plugin settings sound helpful.
    Will this be the following or others:
    Editing nextgen-gallery/nggallery.php
    and
    nextgen-gallery/view/gallery-caption.php

    Again, I'm interested in your sequence - "clicking on a thumbnail & going to the image with text, and if you click on the image you go to the jpeg."
    Thank you
    Joe

  19. Toshi Yoshida
    Member
    Posted 3 years ago #

    Hi Joe,
    Visit http://japanese-art.blog107.com/nextgen-gallery-settings/ to see screen captures of my nextgen gallery settings.

    I guess something in there gives me the "clicking on a thumbnail & going to the image with text, and if you click on the image you go to the jpeg." effect.

    Regards,
    Mike.

  20. Toshi Yoshida
    Member
    Posted 3 years ago #

    Hi all,
    I've changed my domain name so if you use the links above (http://japaneseartsgallery.com .....) you will be redirected to a matching page on http://japaneseartsgallery.com - just thought I'd mention that in case anyone was concerned about being redirected.
    Regards, Mike.

  21. Dan Bollinger
    Member
    Posted 3 years ago #

    This worked for me, too:

    <span><?php echo $image->aalttext ?></span>

  22. Toshi Yoshida
    Member
    Posted 3 years ago #

    Hi Dan,
    Did you really mean (double a) 'aalttext'? I tried it out but I didn't get any text under my thumbnails so either that variable is empty in my setup or it doesn't exist.

    I also had to use 'alttext' higher up in the code to replace 'decription' in the href title attribute field as my use of long image descriptions causes problems in several modules. I opened a topic on that at http://wordpress.org/support/topic/plugin-nextgen-gallery-image-description-being-used-as-title-and-caption?replies=2#post-1850490 as I feel description, titles and captions are not being used as one would expect them to be used.

    Regards, Mike.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.