Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @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.

    Thread Starter singer74

    (@singer74)

    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.

    icek123

    (@icek123)

    @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!

    Plugin Contributor photocrati

    (@photocrati)

    @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.

    Thread Starter singer74

    (@singer74)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Removing captions in lightbox images and title text’ is closed to new replies.