WordPress.org

Forums

NextGEN Gallery
[resolved] Removing captions in lightbox images and title text (6 posts)

  1. singer74
    Member
    Posted 1 year ago #

    I have Nextgen 2.0.59 and I need to hide 2 things: the caption that shows on the lightbox image, and the alt text or title text that shows when hovering over a thumbnail. When searching the forum on this topic I can only find old posts about old versions of Nextgen. Can someone help me accomplish this in the new version?

    https://wordpress.org/plugins/nextgen-gallery/

  2. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    @singer74 - You may be able to apply custom CSS to hide the image captions but the Alt&Title text of the image (the tool-tip text when you hover over the image) is not easily removed as is due to those being standard <img> tag parameters.

    Thanks!

    - Cais.

  3. singer74
    Member
    Posted 1 year ago #

    Ah, yes -- changing the #titleText to display:none in the CSS did it! Can't believe I didn't think of that. Thanks for the tip!
    I'll have to live with the tooltips for now.

  4. icek123
    Member
    Posted 1 year ago #

    @singer74 - As indicated by photocrati above you can easily hide image caption in the lightbox by using CSS:

    <style>
    #fancybox-title.fancybox-title-inside {
    display: none !important;
    }
    </style>

    To hide the Title text of the image (tool-tip which shows on hover) I have reverted to a jQuery solution as follows:

    <script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery('.ngg-gallery-thumbnail img').prop('title', '');
    });
    </script>

    Hope this helps!

  5. photocrati
    Member
    Plugin Author

    Posted 1 year ago #

    @icek123 - Thanks for the tips and the code snippets. jQuery would be the only suggestion I would have made to handle the tool-tips if it became an absolute necessity, too.

    - Cais.

  6. singer74
    Member
    Posted 1 year ago #

    @icek123, Awesome, that worked, thank you!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic