WordPress.org

Ready to get started?Download WordPress

Forums

Auto ThickBox Plus
Show Title and Caption (3 posts)

  1. crobley
    Member
    Posted 1 year 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;
    	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.

    http://wordpress.org/extend/plugins/auto-thickbox-plus/

  2. chrisvallleyoc
    Member
    Posted 1 year ago #

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

  3. stahnke939
    Member
    Posted 1 year ago #

    chrisvalleyoc,
    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