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
September 21, 2017 at 9:57 pm
#13506
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)