<?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>Springthistle Design</title>
	<atom:link href="http://springthistle.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://springthistle.com</link>
	<description>We Make Websites! Custom websites, personal attention, friendly service.</description>
	<lastBuildDate>Thu, 29 Jul 2010 16:56:58 +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>Launch! YOXI pilot</title>
		<link>http://springthistle.com/updates/launch-yoxi-pilot/</link>
		<comments>http://springthistle.com/updates/launch-yoxi-pilot/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 19:39:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://springthistle.com/?p=908</guid>
		<description><![CDATA[As seen on GOOD.is, the yoxi pilot project gives four teams of three people each to solve one social problem in four weeks.
As GOOD.is put it: &#8220;Yoxi (pronounced YO-see) is a new problem-solving model that hopes to frame social innovation around friendly competition. Four teams ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://springthistle.com/portfolio/yoxi/"><img src="http://springthistle.com/wp-content/uploads/2010/06/yoxi-home-200x200.png" alt="YOXI screenshot" class="alignright" /></a>As seen on <a href="http://www.good.is/post/play-a-social-change-game-over-at-yoxi/" target="_blank">GOOD.is</a>, the yoxi pilot project gives four teams of three people each to solve one social problem in four weeks.</p>
<p>As GOOD.is put it: &#8220;Yoxi (pronounced YO-see) is a new problem-solving model that hopes to frame social innovation around friendly competition. Four teams will spend the next four weeks creating an initiative that increases the number of cyclists on the streets of urban areas. Guided by a team of professional mentors, the teams will craft a pitch for a solution that could range from a new product to a government initiative.&#8221;</p>
<p><a href="http://springthistle.com/portfolio/yoxi/">Learn about Springthistle&#8217;s role in the website &raquo;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://springthistle.com/updates/launch-yoxi-pilot/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>YOXI</title>
		<link>http://springthistle.com/portfolio/yoxi/</link>
		<comments>http://springthistle.com/portfolio/yoxi/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 19:35:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[custom theme]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://springthistle.com/?p=899</guid>
		<description><![CDATA[Was brought into the YOXI project by Jaki at Arrow Root. The client supplied all of the designs and required me to build a fully-functional and flexible WordPress them, customized to their needs. It&#8217;s not WordPress MU &#8211; just has some special user templates, as ...]]></description>
			<content:encoded><![CDATA[<p>
<a href='http://springthistle.com/portfolio/yoxi/attachment/yoxi-home/' title='Homepage'><img width="200" height="200" src="http://springthistle.com/wp-content/uploads/2010/06/yoxi-home-200x200.png" class="attachment-thumbnail" alt="Homepage" title="Homepage" /></a>
<a href='http://springthistle.com/portfolio/yoxi/attachment/yoxi-pitch/' title='The Pitch'><img width="200" height="200" src="http://springthistle.com/wp-content/uploads/2010/06/yoxi-pitch-200x200.png" class="attachment-thumbnail" alt="The Pitch" title="The Pitch" /></a>
<a href='http://springthistle.com/portfolio/yoxi/attachment/yoxi-team/' title='Team page'><img width="200" height="200" src="http://springthistle.com/wp-content/uploads/2010/06/yoxi-team-200x200.png" class="attachment-thumbnail" alt="Team page" title="Team page" /></a>
<a href='http://springthistle.com/portfolio/yoxi/attachment/yoxi-teampost/' title='Team post'><img width="200" height="200" src="http://springthistle.com/wp-content/uploads/2010/06/yoxi-teampost-200x200.png" class="attachment-thumbnail" alt="Team post" title="Team post" /></a>
<a href='http://springthistle.com/portfolio/yoxi/attachment/yoxi-theme-options/' title='Theme Options'><img width="200" height="200" src="http://springthistle.com/wp-content/uploads/2010/06/yoxi-theme-options-200x200.png" class="attachment-thumbnail" alt="Theme Options" title="Theme Options" /></a>
<br />
Was brought into the YOXI project by Jaki at Arrow Root. The client supplied all of the designs and required me to build a fully-functional and flexible WordPress them, customized to their needs. It&#8217;s not WordPress MU &#8211; just has some special user templates, as well as a wicket Theme Options page that lets the client customize a lot of the css, pitch, and video information easily.</p>
<p>The YOXI pilot project was publicized in <a href="http://www.good.is/post/play-a-social-change-game-over-at-yoxi/">GOOD.is</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://springthistle.com/portfolio/yoxi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New WordPress Plugin &#8211; April&#8217;s Facebook Like button</title>
		<link>http://springthistle.com/updates/wordpress-plugin-aprils-facebook-like-button/</link>
		<comments>http://springthistle.com/updates/wordpress-plugin-aprils-facebook-like-button/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 17:20:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://springthistle.com/?p=887</guid>
		<description><![CDATA[Take a look at the new facebook like plugin I wrote for WordPress.
It&#8217;s the fourth plugin I&#8217;ve written, but it&#8217;s the first time I&#8217;ve gone to the trouble to get it added to the WordPress plugin repository. That was a fun process, involving SVN, of ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://springthistle.com/wp-content/uploads/2010/04/fblike-screenshot.png"><img class="alignright size-full wp-image-888" title="fblike screenshot" src="http://springthistle.com/wp-content/uploads/2010/04/fblike-screenshot.png" alt="" width="237" height="146" /></a>Take a look at the new facebook like plugin I wrote for WordPress.</p>
<p>It&#8217;s the fourth plugin I&#8217;ve written, but it&#8217;s the first time I&#8217;ve gone to the trouble to get it added to the WordPress plugin repository. That was a fun process, involving SVN, of course. I hope you&#8217;ll try my plugin out, and <a href="http://springthistle.com/contact/">write to me</a> with feedback!</p>
<p>Here&#8217;s the plugin my website:<br />
<a href="http://springthistle.com/wordpress/plugin_facebooklike/">http://springthistle.com/wordpress/plugin_facebooklike/</a></p>
<p>Here it is at the WordPress plugin repository:<br />
<a href="http://wordpress.org/extend/plugins/aprils-facebook-like-button/">http://wordpress.org/extend/plugins/aprils-facebook-like-button/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://springthistle.com/updates/wordpress-plugin-aprils-facebook-like-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assure WordPress passes correct image to Facebook</title>
		<link>http://springthistle.com/updates/assure-wordpress-passes-correct-image-to-facebook/</link>
		<comments>http://springthistle.com/updates/assure-wordpress-passes-correct-image-to-facebook/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 16:06:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://springthistle.com/?p=859</guid>
		<description><![CDATA[If you have a WordPress blog and want to be sure that when people share a post on facebook (either through AddThis or directly through Facebook), the right image is grabbed, you can add a meta tag to your theme that will assure it happens.
1. ...]]></description>
			<content:encoded><![CDATA[<p>If you have a WordPress blog and want to be sure that when people share a post on facebook (either through AddThis or directly through Facebook), the right image is grabbed, you can add a meta tag to your theme that will assure it happens.</p>
<p><strong>1. Install the plugin</strong> <a href="http://wordpress.org/extend/plugins/get-the-image/" target="_blank">get-the-image</a></p>
<p><strong>2. Create a default image</strong> for your blog and call it blog_icon.png. Upload it to your theme&#8217;s images/ directory.</p>
<p><strong>2. Add this code</strong> to your theme&#8217;s &lt;head&gt;:<span id="more-859"></span></p>
<pre class="brush:php">
&lt;?php
'$defaultimg = get_bloginfo('stylesheet_directory').'/images/blog_icon.jpg';
$img = get_the_image(array(
	'post_id'=>$post->ID,
	'format'=>'array',
	'default_size'=>'thumbnail',
	'default_image'=>$defaultimg
)); ?&gt;
&lt;link rel="image_src" href="&lt;?php if (is_single()) echo $img['url']; else echo $defaultimg ?&gt;" / &gt;
</pre>
<p>Learn more about the meta tags Facebook looks for on the <a href="http://wiki.developers.facebook.com/index.php/Facebook_Share/Specifying_Meta_Tags" target="_blank">Facebook Developers Wiki</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://springthistle.com/updates/assure-wordpress-passes-correct-image-to-facebook/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New WP theme for Quo Vadis Blog</title>
		<link>http://springthistle.com/updates/new-wp-theme-for-quo-vadis-blog/</link>
		<comments>http://springthistle.com/updates/new-wp-theme-for-quo-vadis-blog/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 16:23:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://springthistle.com/?p=844</guid>
		<description><![CDATA[Today launched the new theme for the Quo Vadis Blog website, a long-time client of Springthistle. The blog theme was overdue for an overhaul, and boy is the new theme a revelation.
It&#8217;s got all of the features Quo Vadis wants, with new colors, a double ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://springthistle.com/wp-content/uploads/2007/08/qvblog2010-1024x935.png" title="Quo Vadis Blog 2010" class="alignright size-thumbnail colorbox" rel="clean-gallery-484"><img src="http://springthistle.com/wp-content/uploads/2007/08/qvblog2010-200x200.png" alt="Quo Vadis Blog 2010" title="Quo Vadis Blog 2010" /></a>Today launched the new theme for the <a href="http://quovadisblog.com">Quo Vadis Blog</a> website, a long-time client of Springthistle. The blog theme was overdue for an overhaul, and boy is the new theme a revelation.</p>
<p>It&#8217;s got all of the features Quo Vadis wants, with new colors, a double right-side column, and additional space for the posts themselves. Also added are a variety of features and plugins including AddThis links, tweetmeme, the comment notifier, most popular posts and threaded comments.</p>
<p>Take a look at the new  <a href="http://quovadisblog.com">Quo Vadis Blog</a>!</p>
<p><a href="http://springthistle.com/wp-content/uploads/2010/04/qvblog.png"><img src="http://springthistle.com/wp-content/uploads/2010/04/qvblog-200x200.png" alt="" title="qvblog" width="70" height="70" class="colorbox alignleft size-thumbnail wp-image-850" style="float: left;" /></a>For comparison,<br />
you can also view the<br />
now-retired design,<br />
at left.</p>
]]></content:encoded>
			<wfw:commentRss>http://springthistle.com/updates/new-wp-theme-for-quo-vadis-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Theme for Evernote launched</title>
		<link>http://springthistle.com/updates/theme-for-evernote-launched/</link>
		<comments>http://springthistle.com/updates/theme-for-evernote-launched/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 16:26:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://springthistle.com/?p=839</guid>
		<description><![CDATA[I&#8217;ve been working with people at Evernote for the past couple of weeks to build their new theme. I finished it a couple of days ago and sent them instructions for putting it live. Today, they put it live and it looks great! They provided ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://springthistle.com/portfolio/evernote-blogcast/"><img src="http://springthistle.com/wp-content/uploads/2010/03/Picture-1-200x200.png" alt="" title="Picture 1" width="200" height="200" class="alignright size-thumbnail wp-image-822" /></a>I&#8217;ve been working with people at Evernote for the past couple of weeks to build their new theme. I finished it a couple of days ago and sent them instructions for putting it live. Today, they put it live and it looks great! They provided the design, so my challenge was to implement all of the functionality indicated by the design, even items that aren&#8217;t built into WordPress. Thankfully, WordPress is so well-designed and flexible that it was no trouble to get it all done. Some jQuery was also required! <a href="http://springthistle.com/portfolio/evernote-blogcast/">Read more here &raquo;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://springthistle.com/updates/theme-for-evernote-launched/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evernote Blogcast</title>
		<link>http://springthistle.com/portfolio/evernote-blogcast/</link>
		<comments>http://springthistle.com/portfolio/evernote-blogcast/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 16:19:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[custom theme]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://springthistle.com/?p=821</guid>
		<description><![CDATA[Evernote came to me with their theme already fully designed and asked me to implement it into a theme. It has a number of special features:

Featured posts &#8211; there are grabbed based on the &#8216;featured&#8217; tag and displayed as you see here.
Search results &#8211; instead ...]]></description>
			<content:encoded><![CDATA[<p>
<a href='http://springthistle.com/portfolio/evernote-blogcast/attachment/picture-1-16/' title='Picture 1'><img width="200" height="200" src="http://springthistle.com/wp-content/uploads/2010/03/Picture-1-200x200.png" class="attachment-thumbnail" alt="" title="Picture 1" /></a>
<a href='http://springthistle.com/portfolio/evernote-blogcast/attachment/picture-2-16/' title='Picture 2'><img width="200" height="200" src="http://springthistle.com/wp-content/uploads/2010/03/Picture-2-200x200.png" class="attachment-thumbnail" alt="Customized AddThis" title="Picture 2" /></a>
<a href='http://springthistle.com/portfolio/evernote-blogcast/attachment/picture-3-16/' title='Picture 3'><img width="200" height="200" src="http://springthistle.com/wp-content/uploads/2010/03/Picture-3-e1269620231186-200x200.png" class="attachment-thumbnail" alt="Featured posts" title="Picture 3" /></a>
<a href='http://springthistle.com/portfolio/evernote-blogcast/attachment/picture-4-16/' title='Picture 4'><img width="200" height="200" src="http://springthistle.com/wp-content/uploads/2010/03/Picture-4-e1269620321824-200x200.png" class="attachment-thumbnail" alt="Search results" title="Picture 4" /></a>
<a href='http://springthistle.com/portfolio/evernote-blogcast/attachment/picture-5-14/' title='Picture 5'><img width="200" height="200" src="http://springthistle.com/wp-content/uploads/2010/03/Picture-5-200x200.png" class="attachment-thumbnail" alt="Tree-view for comments" title="Picture 5" /></a>
<br />
Evernote came to me with their theme already fully designed and asked me to implement it into a theme. It has a number of special features:</p>
<ul>
<li>Featured posts &#8211; there are grabbed based on the &#8216;featured&#8217; tag and displayed as you see here.</li>
<li>Search results &#8211; instead of the standard search results, these grab a thumbnail of the image associated with the post (or a default image, if required) and use a special, shorter excerpt.</li>
<li>Customized AddThis &#8211; using the AddThis service, but 100% customized for Evernote</li>
<li>Tree-display for comments &#8211; this was mostly a feat of careful css programming, but also required entirely customizing the WordPress output of comments. <a href="http://springthistle.com/updates/tree-styling-for-threaded-comments-in-wordpress/">Strategy explained here</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://springthistle.com/portfolio/evernote-blogcast/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tree-styling for threaded comments in WordPress</title>
		<link>http://springthistle.com/updates/tree-styling-for-threaded-comments-in-wordpress/</link>
		<comments>http://springthistle.com/updates/tree-styling-for-threaded-comments-in-wordpress/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 17:53:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://springthistle.com/?p=796</guid>
		<description><![CDATA[After quite a bit of wrangling, I got comments to display the way the client wants &#8211; in a tree (three levels deep only). I had tried to find a pre-existing solution for this, but none seemed to appear. Using a little wordpress comments tweaking ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://springthistle.com/wp-content/uploads/2010/03/comments.png"><img src="http://springthistle.com/wp-content/uploads/2010/03/comments-200x200.png" alt="comments" title="comments" width="200" height="200" class="alignright size-thumbnail wp-image-797" /></a>After quite a bit of wrangling, I got comments to display the way the client wants &#8211; in a tree (three levels deep only). I had tried to find a pre-existing solution for this, but none seemed to appear. Using a little wordpress comments tweaking and css&#8217;s :last-child pseudoclass, it&#8217;s all good to go now. Solution below the jump.<span id="more-796"></span></p>
<h3>The solution</h3>
<p>First you need to have a custom comments function. To do this, I changed the line in comments.php to this:</p>
<pre class="brush:php">wp_list_comments('type=comment&#038;callback=ahs_comment')</pre>
<p>That tells WordPress to not use its default, but to use a custom function in functions.php called, you guess it, ahs_comment(). Then, of course, we need the css to make it all go. This isn&#8217;t all the css for the comments, just the pieces relevant for the tree structure. </p>
<p><a href='http://springthistle.com/wp-content/uploads/2010/03/tree_styling-function_and_css.txt'>Both function and css are in this file</a>.</p>
<p>Lastly, you need the four images:</p>
<ul>
<li><a href="http://springthistle.com/wp-content/uploads/2010/03/cmt-thrd-hline.gif">H line</a></li>
<li><a href="http://springthistle.com/wp-content/uploads/2010/03/cmt-thrd-vline.gif">V line</a></li>
<li><a href="http://springthistle.com/wp-content/uploads/2010/03/cmt-thrd-vvline.gif">Double V line</a></li>
<li><a href="http://springthistle.com/wp-content/uploads/2010/03/cmt-thrd-L.gif">The L</a></li>
</ul>
<p>I know it had to have been possible without the additional image for the Double-V line, but I could not make it work, so here we are with a V and a double V.</p>
]]></content:encoded>
			<wfw:commentRss>http://springthistle.com/updates/tree-styling-for-threaded-comments-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Highlighting current post&#8217;s category in WordPress</title>
		<link>http://springthistle.com/updates/highlighting-current-posts-category-wordpress/</link>
		<comments>http://springthistle.com/updates/highlighting-current-posts-category-wordpress/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 14:03:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://springthistle.com/?p=786</guid>
		<description><![CDATA[Wrote a little javascript and hook for a WordPress client today who wants the category of the current post highlighted (on single.php). Note that if you&#8217;d like to implement this, you&#8217;ve got to have jQuery already.
The php for category html output:


]]></description>
			<content:encoded><![CDATA[<p>Wrote a little javascript and hook for a WordPress client today who wants the category of the current post highlighted (on single.php). Note that if you&#8217;d like to implement this, you&#8217;ve got to have jQuery already.</p>
<p>The php for category html output:</p>
<pre class="brush:php">
<ul>
<li class="cat-item cat-item-0"><a href="<?php echo get_option('home'); ?>/">All Posts</a></li>

&lt;?php wp_list_categories('title_li='); ?>
</ul>
</pre>
<p>I&#8217;ve got the cat-item-0 in there because WordPress doesn&#8217;t generate something like that automatically, of course. It&#8217;s essentially just a link to the main posts page, or blog home. So after WordPress processing, the output html looks something like this:<span id="more-786"></span></p>
<pre class="brush:html">
<ul>
<li class="cat-item cat-item-0"><a href="/">All Posts</a></li>
<li class="cat-item cat-item-1"><a href="/news/">News</a></li>
<li class="cat-item cat-item-2"><a href="/notes/">Notes</a></li>
<li class="cat-item cat-item-3"><a href="/nabobs/">Nabobs</a></li>
</ul>
</pre>
<p>Next, I&#8217;ve got a javascript function in the functions.js file that&#8217;s included in the head of the theme:</p>
<pre class="brush:javascript">function highlightCurrentCategory(catid) {
	jQuery('.cat-item-'+catid).addClass('current-cat');
}</pre>
<p>When the function is run, it&#8217;s passed the ID of the category to highlight, and it adds the current-cat class to that list item.</p>
<p>Finally, in the functions.php file for the theme, I&#8217;ve got this php function and the add_action for the hook:</p>
<pre class="brush:php">
function highlightCurrentCategory() {
	global $post;
	if (is_single()) {
		$category = get_the_category($post->ID);
		echo '<script type="text/javascript">highlightCurrentCategory('.$category[0]->cat_ID.')</script>';
	}
	if (is_home()) {
		echo '<script type="text/javascript">highlightCurrentCategory(0)</script>';
	}
}
add_action('wp_footer', 'highlightCurrentCategory');</pre>
<p>It&#8217;s using wp_footer so that it happens at the very end of the page and doesn&#8217;t slow down other things that might need to happen sooner on the page. The javascript is only printed for single-post pages and for the home page &#8211; if it&#8217;s a category page, WordPress automatically includes the current-cat class. </p>
]]></content:encoded>
			<wfw:commentRss>http://springthistle.com/updates/highlighting-current-posts-category-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Colorbox with WordPress</title>
		<link>http://springthistle.com/updates/colorbox-with-wordpress/</link>
		<comments>http://springthistle.com/updates/colorbox-with-wordpress/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 19:21:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://springthistle.com/?p=774</guid>
		<description><![CDATA[I&#8217;ve used this method a bunch of times and have decided it&#8217;s high time to document the process. It&#8217;s my favorite method for using colorbox with the built-in WordPress gallery. Detailed steps after the jump.

Download colorbox.
Figure out which of the four existing design you&#8217;d like ...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve used this method a bunch of times and have decided it&#8217;s high time to document the process. It&#8217;s my favorite method for using colorbox with the built-in WordPress gallery. Detailed steps after the jump.<span id="more-774"></span></p>
<ol class="tasksteps">
<li>Download <a href="http://colorpowered.com/colorbox/">colorbox</a>.</li>
<li>Figure out which of the four existing design you&#8217;d like to use (or write your own) and grab the following files, which are in different directories in the colorbox zip you downloaded:
<ul>
<li>jquery.colorbox-min.js</li>
<li>colorbox.css</li>
<li>images/</li>
</ul>
<p>Put all three into a directory named colorbox inside of your theme folder&#8217;s js/ directory.</li>
<li>Download and install the plugin called <a href="http://wordpress.org/extend/plugins/cleaner-gallery/">Cleaner Gallery</a>. On the settings page for this plugin (Appearance &gt; Cleaner Gallery), set the following settings:
<ul>
<li>Gallery Settings: Image Link: Large</li>
<li>Gallery Settings: Captions: Use the image title as a caption if there is no caption available</li>
<li>Javascript Settings: Image Script: Thickbox &#8211; this doesn&#8217;t require that you use thickbox, but it makes some changes to the &#91;gallery&#93; output that you need for colorbox also.</li>
</ul>
</li>
<li>Add a new file called functions.js in the theme&#8217;s js/ directory and put the following code into it:
<pre class="brush: js">$(document).ready(function(){
	$('.gallery a:has(img)').colorbox();
	$(".colorbox").colorbox();
});</pre>
<p>This will be sure that the colorbox script is used in the image gallery and also on any link that has the class &#8220;colorbox&#8221;, so you can add it to other images and links.</li>
<li>Make changes to the header.php of the theme so that it calls in jquery and the colorbox js and css. E.g.:
<pre class="brush: html">
&lt;link rel="stylesheet" href="&lt;?php bloginfo('stylesheet_directory'); ?>/js/colorbox/colorbox.css"  type="text/css" media="screen" />
&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">&lt;/script>
&lt;script type="text/javascript" src="&lt;?php bloginfo('stylesheet_directory'); ?>/js/colorbox/jquery.colorbox-min.js">&lt;/script>
&lt;script type="text/javascript" src="&lt;?php bloginfo('stylesheet_directory'); ?>/js/functions.js">&lt;/script>
</pre>
<p>I usually like to put the colorbox css before my main theme&#8217;s stylesheet, in case I want to make any simple modifications to the defaults. Also, be sure to call in your javascript in the above order.</li>
</ol>
<p>That&#8217;s it, except perhaps for some additional stylesheet-tweaking.</p>
<p>Some examples:<br />
<a href="http://springthistle.com/portfolio/evernote-blogcast/">My portfolio</a><br />
<a href="http://emanuelsynagogue.org/who-we-are/photo-gallery/hanukah-carnival-2009/">Congregation Emanuel</a></p>
]]></content:encoded>
			<wfw:commentRss>http://springthistle.com/updates/colorbox-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
