Auto ThickBox Plus
Show Title and Caption (3 posts)

  1. crobley
    Posted 3 years ago #

    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;
    	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.


  2. chrisvallleyoc
    Posted 3 years ago #

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

  3. stahnke939
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic