<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Torn Elements &#187; WordPress</title>
	<atom:link href="http://www.tornelements.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tornelements.com</link>
	<description>Larry Monte - Regaining the passion for design</description>
	<lastBuildDate>Wed, 05 May 2010 22:56:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress 2.7 &#8211; With Built In LightBox!</title>
		<link>http://www.tornelements.com/2009/01/07/wordpress-27-with-built-in-lightbox/</link>
		<comments>http://www.tornelements.com/2009/01/07/wordpress-27-with-built-in-lightbox/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 16:13:39 +0000</pubDate>
		<dc:creator>Larry Monte</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://www.tornelements.com/2009/01/07/wordpress-27-with-built-in-lightbox/</guid>
		<description><![CDATA[ With three short lines of code in your theme’s header.php file, you can instantly have lightbox capabilities on your WordPress 2.7 Blog.
In case you haven’t poked around the backend since your upgrade to Wordpress 2.7, this version includes the ThickBox Script for previewing and selecting themes. (Or was this in 2.6 also? Can’t remember.) [...]]]></description>
			<content:encoded><![CDATA[<p><img title="wordPress" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 10px; border-right-width: 0px" height="112" alt="wordPress" src="http://www.tornelements.com/wp-content/uploads/2009/01/wordpress.jpg" width="125" align="right" border="0" /> With three short lines of code in your theme’s header.php file, you can instantly have lightbox capabilities on your WordPress 2.7 Blog.</p>
<p>In case you haven’t poked around the backend since your upgrade to Wordpress 2.7, this version includes the <a title="ThickBox Homepage" href="http://jquery.com/demo/thickbox/">ThickBox Script</a> for previewing and selecting themes. (Or was this in 2.6 also? Can’t remember.) If the code to do this is already there, then why not use it on the front end too?</p>
<p>Here is all you need to do:</p>
<p>Go to your theme directory and load ‘header.php’ into your editor. Add the following three lines within the &lt;head&gt; &lt;/head&gt; tags:</p>
<blockquote><p><code>&lt;script type=&quot;text/javascript&quot; src=&quot;wp-includes/js/jquery/jquery.js&quot;&gt;&lt;/script&gt; </code></p>
<p>&lt;script type=&quot;text/javascript&quot; src=&quot;wp-includes/js/thickbox/thickbox.js&quot;&gt;     <br />&lt;/script&gt;</p>
<p>&lt;style type=&quot;text/css&quot; media=&quot;all&quot;&gt;     <br />@import &quot;wp-includes/js/thickbox/thickbox.css&quot;;&lt;/style&gt;</p>
</blockquote>
<p>Save/Upload the changes. That’s it! You’re now ready to use ThickBox on the front end.</p>
<p>You only need to add a couple extra parameters to your links to get it to work.</p>
<blockquote><p><code></code></p>
<p>&lt;a href=&quot;license.txt<strong><em>?height=600&amp;width=800</em></strong>&quot; title=&quot;WordPress &#8211; License.txt&quot; <strong><em>class=&quot;thickbox</em></strong>&quot;&gt;CLICK HERE FOR EXAMPLE&lt;/a&gt;</p>
</blockquote>
<p>In this example, I’m displaying a text document (the WordPress License) within a scrollable window. Appending <strong>‘?height=600&amp;width=800’</strong> to the link defines the size of the lightbox. The <strong>class=&quot;thickbox” </strong>completes the job.</p>
<p><a title="WordPress - License.txt" href="http://www.tornelements.com/license.txt?height=600&amp;width=800" class="thickbox">CLICK HERE FOR EXAMPLE</a> (Note: May not work within all news readers – visit the site)</p>
<p>Works for images too! More options for using ThickBox, <a title="ThickBox Homepage" href="http://jquery.com/demo/thickbox/">can be found here</a>. Just ignore the download and install instructions as that’s already been done by WordPress. <img src='http://www.tornelements.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I just stumbled onto this and thought I would share.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tornelements.com/2009/01/07/wordpress-27-with-built-in-lightbox/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
