• In another post I discovered how to show the caption when the user clicks on the image to go into the Thickbox gallery.

    function tb_click(){
    var t = jQuery(this).parent().next('.gallery-caption').text() || this.title || this.name || null;
    	var a = this.href || this.alt;
    	var g = this.rel || false;
    	tb_show(t,a,g);
    	this.blur();
    	return false;
    }

    Which works great. But I’d like for it to show the title of the image as well. I was playing with it for a bit and realize I am just not savvy enough to get it to display the Title and then the Caption on the same line or next line.

    Any help would be great. Thanks.

    https://www.ads-software.com/extend/plugins/auto-thickbox-plus/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Where do you put the code to make the caption part work? I’m having the same problem.

    stahnke939

    (@stahnke939)

    chrisvalleyoc,
    I was able to use this function. I replaced the stock function starting on line 26 of wp-includes/js/thickbox/thickbox.js

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show Title and Caption’ is closed to new replies.