• Resolved amandadcox

    (@amandadcox)


    I don’t want the photo titles to show on hover in the thumbnail gallery in any of my galleries. I can’t figure out how to get it from showing up. I already have the below code in the wordpress additional CSS field:

    #envirabox-title-float-wrap tbody, #envirabox-title-float-wrap td {
        display: none !important;
    } 
    
    .caption {
        display: none !important;
    }
    
    jQuery(".envira-gallery-image, .envira-gallery-link").attr("title", "");
    

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @amandadcox

    Thanks for reaching out. I apologize for the trouble!

    Can you please try the snippet below, and let me know your results?

    jQuery('.envira-gallery-item img').hover(function() {
        jQuery(this).data('title', jQuery(this).attr('title'));
        jQuery(this).attr('title', '');
    }, function() {
        jQuery(this).attr('title', jQuery(this).data('title'));
    });

    Thank you!

    • This reply was modified 2 years, 10 months ago by bmilligan15. Reason: Fixed code format

    I have the same need, remove display of the title. I am using Code Snippets plug-in and have entered your recommended code but the titles ae still visible.
    Can you offer a bit more advice on application of the snippet pls?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Captions on Hover’ is closed to new replies.