Support » Plugin: Auto ThickBox Plus » Show Title and Caption

  • crobley


    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 || || null;
    	var a = this.href || this.alt;
    	var g = this.rel || false;
    	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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • chrisvallleyoc


    Where do you put the code to make the caption part work? I’m having the same problem.



    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.