Pop-Up Picture Box Thingy For WordPress Blogs

Bookmark Pop-Up+Picture+Box+Thingy+For+Wordpress+Blogs

Bookmark or Share

Yeah, well I couldn’t think of the common term for it. It’s technically called a “ThickBox” in the CSS code. Anyways, every free wordpress.com blog has the Thickbox in their CSS (edit: it only appears if you’re using the Social Vibe widget) it’s just not viewable in the CSS editor. I saw the “lightbox” code in the CSS a while ago but wasn’t sure how to get it toobama-platoon work. Then today, I visited Devblog’s new anime blog in the wallpaper section, looked at his links and saw the class “class=”thickbox” and then I found out how to do it!!! So, here goes how to add it. First, here’s what it looks like, just click on the picture.

The picture will only get as big as the original size of the picture from my understanding.  Anyways, just make sure you link to the actual image url of the picture and not an attachment page. Looks something like,

<a class=”thickbox” href=”http://sensicology.files.wordpress.com/2009/07/obama-platoon1.jpg”><img title=”obama-platoon” src=”http://sensicology.files.wordpress.com/2009/07/obama-platoon1.jpg” alt=”obama-platoon” width=”68″ height=”80″ /></a>

The same thing will work if you’re just linking to an image.  For example, MY CAT!! You can see the difference to how large the image is. The first picture has the thickbox class and the second picture just links to the original image url.  In my opinion I like the second one but I know theres a lot of wordpressers that would love to have a pop-up box.

Flower is dyingFlower is dying

Don’t know how to do this with galleries, text or videos, yet!  But anything is possible….kind of…but I kind of have a headache now, so it’s best I not think a lot right now…

oh, and if you have the CSS upgrade, the appearance of the box can be changed, I just recommend getting the firefox addon, Web Developer, so you can make changes in real time and access code you wouldn’t see in the CSS editor on wordpress.