Home Forums UPFront WordPress Theme Gallery Shortcode – Show caption also on the enlarged image Reply To: Gallery Shortcode – Show caption also on the enlarged image

#13506

brunodario
Participant

Got it figured out with jquery, the code below will grab the text of the caption and insert it as the title attribute as desired.

    jQuery( "span.collage-caption" ).each(function() {
        var titleattr =  jQuery(this).text();
        jQuery(this).prev().attr('title', titleattr);         
    });  

Anyway, it would be nice to have a similar option to enable / disable this feature on the shortcode` (show title on enlarged image)

Join Newsletter(FREE)

Subscribe to our newsletter to receive news & updates. We promise to not spam you, super promise!