WordPress.org

Ready to get started?Download WordPress

Forums

Easy Image Gallery
[resolved] Titles or Captions above or below thumbnails (8 posts)

  1. closetnerdthe1st
    Member
    Posted 5 months ago #

    It would be a nice feature to have the option of displaying the image title or caption above or below the gallery page thumbnail. Additionally having a short 1 line description below the image title in the lightbox when displayed would be nice as well.

    An example of this can be found at jauquet.com which is currently being revised and converted to WordPress. This would give a very basic cataloging feature without all the complexity of a commerce type of setup.

    https://wordpress.org/plugins/easy-image-gallery/

  2. Andrew Munro
    Member
    Plugin Author

    Posted 5 months ago #

    Hi,

    See this tutorial for adding captions below the thumbnails
    http://sumobi.com/docs/easy-image-gallery/adding-captions/

    If you add a title to your images, it will be shown (or should) in the lightbox

  3. wildmank
    Member
    Posted 5 months ago #

    This is great! However, could you please tell me WHICH file the php code should be inserted into and where?

    Thanks so much!

  4. Andrew Munro
    Member
    Plugin Author

    Posted 5 months ago #

    Technically it can go into any PHP file within your theme, however most people like to put code into your theme's functions.php file. You can place the code anywhere within a PHP file, as long as it's not within another functions.

  5. wildmank
    Member
    Posted 5 months ago #

    Perfect Sumobi! It worked beautifully!

  6. pixelhated
    Member
    Posted 4 months ago #

    When I do this fix, it no longer shows the photo description when it opens up the larger image. Is there a way to show the caption below the thumbnail, but show the caption and the desctription when it is opened up larger?

    http://debrichardsondesigns.com/?page_id=22#prettyphotogroup/0/

  7. closetnerdthe1st
    Member
    Posted 4 months ago #

    Sumobi, I just wanted to say thanks for the quick response to my suggestion and my apologies for just getting back to you. Your fix works perfectly. As I'm using a framework I inserted the code at the end of my template-functions.php file.

    Because the thumbnails tend to align left over the caption and the thumbnails are of various widths, I just added this css code to the bottom of the <style> section to force the thumbnails to be centered over the captions as follows:

    .image-gallery a img{
        margin: 0 auto 0 auto;
    }

    I will provide a link as soon as the site revisions are complete. Again, Thanks!

  8. Andrew Munro
    Member
    Plugin Author

    Posted 4 months ago #

    @pixelhated The lightboxes display the title attribute of the image in the popup. The code I provided earlier will not add the description to the lightbox. You will need to write some custom Javascript for that.

    @closetnerdthe1st Awesome!

Reply

You must log in to post.

About this Plugin

About this Topic