geeky · wp hacks

WordPress.com lightbox/thickbox trick

Last I tried, this trick no longer works as of 9/16/2012. Not sure when it stopped working.


Click for an example.

  1. In your theme widget, add the socialvibe widget to your sidebar.
  2. Add the class “thickbox” in any of your links to an image. e.g.
    <a href="https://pe20110517.files.wordpress.com/2011/05/print1.png?w=480" class="thickbox">your link or image src</a>
    
  3. To use the gallery feature, use the same rel attribute for multiple image links. e.g.
    <a href="image1.jpg" class="thickbox" rel="gallery">image1</a> | <a href="image2.jpg" class="thickbox" rel="gallery">image2</a> 
    

    To see it in action, visit my layouts page.

Credits: sensicology, thickbox.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s