WordPress.org

Forums

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

  1. closetnerdthe1st
    Member
    Posted 1 year 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 (sumobi)
    Member
    Plugin Author

    Posted 1 year 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 1 year 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 (sumobi)
    Member
    Plugin Author

    Posted 1 year 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 1 year ago #

    Perfect Sumobi! It worked beautifully!

  6. pixelhated
    Member
    Posted 1 year 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 1 year 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 (sumobi)
    Member
    Plugin Author

    Posted 1 year 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!

  9. dervisis
    Member
    Posted 5 months ago #

    Hello, and thank you for your nice addon. I need to add caption below thumbnails too, but when I am inserting the code, an error occured.
    I am inserting the code in functions.php. I use Hero theme. Is there anyway to add safely this code ?

  10. Andrew Munro (sumobi)
    Member
    Plugin Author

    Posted 5 months ago #

    what was the error? you likely didn't close/open the PHP tags properly. If you show me your full code including the added code I can tell you where you went wrong. Paste to snippi.com and share the link here.

  11. andrew1989
    Member
    Posted 5 months ago #

    hi, Andrew Munro

    Thanks for your plugin,it looks great.
    but why isn't the plugin compatible with IE8? I had a test by IE Tester.

  12. Andrew Munro (sumobi)
    Member
    Plugin Author

    Posted 5 months ago #

    See my answer on your other post

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Image Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic