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

  1. singer74
    Posted 2 years 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?


  2. photocrati
    Plugin Author

    Posted 2 years 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.


    - Cais.

  3. singer74
    Posted 2 years 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
    Posted 2 years ago #

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

    #fancybox-title.fancybox-title-inside {
    display: none !important;

    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', '');

    Hope this helps!

  5. photocrati
    Plugin Author

    Posted 2 years 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
    Posted 2 years 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