Add Full Size Option In Wordpress Thickbox!

Written by Anurag Bhateja on December 26, 2008 – 10:42 pm -

Many of you people who were using ne or another gallery plugins which use thickbox. Now as thickbox is an integral part of Wordpress, something very unusual happened as there is no option of “Full Size”. Some of you or your clients may need that feature for their galleries.

There is a small code hack with which you can get the option back. Just follow the simple steps and it can be done :)

1. Open any FTP client which you like.
2. Go to your website’s public_html folder and then proceed to wp-includes >> js >> thickbox.
3. Open thickbox.js in edit mode.
4. Search for “TB_PrevHTML + TB_NextHTML” it is in line 129.
5. Just before this, add from here

“&nbsp;&nbsp;<a href=’” + url + “‘ id=’TB_FullSize’ title=’Full Size’>Full Size</a>&nbsp;&nbsp;” +

till up here.
6. Save the file and check the thickbox by clicking an image in gallery of your website.

Done!

Sample Photograph… Click on the image to see “Full Size” Option.

img_0699.jpg
http://www.anuragbhateja.com/wp-content/plugins/sociofluid/images/digg_48.png http://www.anuragbhateja.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://www.anuragbhateja.com/wp-content/plugins/sociofluid/images/delicious_48.png http://www.anuragbhateja.com/wp-content/plugins/sociofluid/images/technorati_48.png http://www.anuragbhateja.com/wp-content/plugins/sociofluid/images/facebook_48.png http://www.anuragbhateja.com/wp-content/plugins/sociofluid/images/twitter_48.png


Tags: , , , , , , , , , , , , ,
Posted in Wordpress hacks | 4 Comments »

If You Like The Content Subscribe To Feed:

Enter your email address:

Delivered by FeedBurner


4 Responses to “Add Full Size Option In Wordpress Thickbox!”

  1. By Dum on Sep 22, 2009 | Reply

    it needs so much bandwidth…. :(

  2. By geneve on Oct 5, 2009 | Reply

    it might cause slowdown on your site but will try this sometime :)

  3. By Jenn on Oct 13, 2009 | Reply

    thanks for the tuts. i never use thickbox on my site.

  4. By akira07 on Oct 17, 2009 | Reply

    @Dum
    but i think nowadays internet access is not bad. So the tips can be implemented.

Post a Comment

  • Space For Advertisement