<?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>Bill Erickson&#187; thesis-tip</title>
	<atom:link href="http://www.billerickson.net/tag/thesis-tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.billerickson.net</link>
	<description>WordPress Consulting</description>
	<lastBuildDate>Wed, 01 Feb 2012 15:32:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Replacing Thesis Post Image with WordPress Post Thumbnail</title>
		<link>http://www.billerickson.net/wordpress-thesis-post-image-featured-thumbnail/</link>
		<comments>http://www.billerickson.net/wordpress-thesis-post-image-featured-thumbnail/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 12:32:57 +0000</pubDate>
		<dc:creator>Bill Erickson</dc:creator>
				<category><![CDATA[Old]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[intermediate]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[thesis-tip]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.billerickson.net/?p=2130</guid>
		<description><![CDATA[WordPress has a "Featured Image" option which is much easier to use than Thesis' Post Image tool. I'll walk you through setting it up on your Thesis website.]]></description>
			<content:encoded><![CDATA[<p>Thesis comes with a feature called the Thesis Post Image. When you associate an image with a post, you can easily resize and crop it to whatever dimensions you want anywhere on the site (see my post on <a href="http://www.billerickson.net/wordpress-thesis-custom-image-category-page/">Custom Images</a>). But it&#8217;s a bit difficult to use for multiple reasons:</p>
<ul>
<li>You have to upload an image, then copy the image&#8217;s URL, close the upload window, then paste the URL in a text box on the post page. It&#8217;s not very intuitive for non-technical people to use.</li>
<li>It displays the full-size image on the featured posts and single post pages. A lot of times a client will upload an image that&#8217;s too large, thinking Thesis will just resize it. It resizes all the thumbnails but leaves the original on the main post.</li>
</ul>
<p>WordPress has a great new featured called <a href="http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/">WordPress Post Thumbnails</a>. When activated, you&#8217;ll see a &#8220;Set Featured Image&#8221; button in the post editor (see the image at the top). You click this, are taken to the upload screen to upload your image, and then you press &#8220;Use as Featured&#8221;. That&#8217;s all you have to do &#8211; no copying and pasting of URL&#8217;s.</p>
<p>There is a downside to this solution though. You have to manually code in the dimensions you want the thumbnails to be in your custom_functions.php file. If you add a new image size in the future, you&#8217;ll have to use the <a href="http://wordpress.org/extend/plugins/regenerate-thumbnails/">Regenerate Thumbnails</a> plugin to go through all your images and make new thumbnails (it makes the thumbnails when the image is uploaded, so if you change the thumbnail dimensions all uploaded images will be wrong).</p>
<p>None of these issues are a big deal if you&#8217;re doing a project for a client, since you&#8217;ll be setting up the post images for them and they won&#8217;t need to resize them in the future (and if they do, they can hire you to install the plugin and click &#8220;Regenerate&#8221;).</p>
<p>So, here&#8217;s how you add WordPress Post Image support to Thesis. I&#8217;m going to post all the code, then walk you through what it&#8217;s doing.</p>
<pre class="brush: php; title: ; notranslate">/* Image Sizes */
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 500, 400 );
add_image_size( 'teaser-image', 250, 115, true);

add_action('thesis_hook_before_post','add_thumbnail');
function add_thumbnail() {
if(has_post_thumbnail() &amp;&amp; is_single()):
echo '&lt;p&gt;'.get_the_post_thumbnail().'&lt;/p&gt;';
elseif(has_post_thumbnail()):
echo '&lt;p&gt;&lt;a href=&quot;'.get_permalink().'&quot;&gt;'.get_the_post_thumbnail().'&lt;/a&gt;&lt;/p&gt;';
endif;
}

add_action('thesis_hook_before_teaser','teaser_thumbnail');
function teaser_thumbnail() {
if(has_post_thumbnail()):
echo '&lt;p&gt;&lt;a href=&quot;'.get_permalink().'&quot;&gt;';	the_post_thumbnail('teaser-image');
echo '&lt;/a&gt;&lt;/p&gt;';
endif;
}</pre>
<ul>
<li>The first line, <code>add_theme_support( 'post-thumbnails' )</code> , tells WordPress that this theme supports Post Thumbnails, so the post editor should have the featured image box. This is why you don&#8217;t already see it in Thesis.</li>
<li>The next line defines the default size of a post thumbnail. If you just use ( number , number ) then it will use &#8220;Box resize mode&#8221; which will scale the image to fit within a box of that dimensions (no cropping). Note that you should set this to whatever you want. I have it set for a maximum of 500px wide and 400px tall.</li>
<li>The next line defines a new image size (this one is for teasers). By adding &#8220;true&#8221; to the conditions it switches it to hard-crop mode, where it will always make a thumbnail of exactly those dimensions. Set this to whatever you&#8217;d like. I have it set to crop the image to 250px wide by 115px tall.</li>
<li>The next block of code is the function that adds the post thumbnail to the beginning of the post. It basically says &#8220;if this post has a thumbnail and we&#8217;re on a single page, just show the image. If we&#8217;re anywhere else (like the homepage) make the image a link to the single post.&#8221;</li>
<li>The next block of code is the function that adds the post thumbnail to teasers. It just says &#8220;if this post has a thumbnail, stick the teaser version of the image at the top and make it click through to the full post.&#8221; Since it uses the hook <code>thesis_hook_before_teaser</code>, it will only execute on teaser posts.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.billerickson.net/wordpress-thesis-post-image-featured-thumbnail/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>Adding “nofollow” to Category Links</title>
		<link>http://www.billerickson.net/adding-nofollow-to-category-links/</link>
		<comments>http://www.billerickson.net/adding-nofollow-to-category-links/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 19:53:05 +0000</pubDate>
		<dc:creator>Bill Erickson</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[genesis]]></category>
		<category><![CDATA[intermediate]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[thesis-tip]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.billerickson.net/?p=2077</guid>
		<description><![CDATA[If you have a lot of categories, here's how to add a "nofollow" to them to prevent diluting your Google PageRank.]]></description>
			<content:encoded><![CDATA[<p>One of my clients (<a href="http://www.stuckincustoms.com">StuckInCustoms</a>) has a huge number of categories. They wanted to use the default WordPress functions to list all the categories in the sidebar and list the categories a specific post is in, but also wanted to add <code>rel="nofollow"</code> to all of the links.</p>
<p>The following code should be placed in your custom_functions.php file if you&#8217;re using Thesis, or your functions.php file if you&#8217;re using any other theme:<br />
<script src="https://gist.github.com/1325314.js"> </script></p>
<p>This is what it&#8217;s doing:<br />
- We created a filter called <code>add_nofollow()</code> which takes in the content of something, looks for <code>&lt;a&gt;</code>&#8216;s and uses the <code>wp_rel_nofollow_callback()</code> function to add <code>rel="nofollow"</code> to it.<br />
- The function <code>the_category()</code> outputs links with <code>rel="category tag"</code> already, and we don&#8217;t want to rel&#8217;s in the code. So we wrote a filter <code>add_nofollow_cat()</code> that first finds and removes the <code>rel="category tag"</code>, then runs the filter <code>add_nofollow()</code>.<br />
- We ran the filter <code>add_nofollow()</code> on the function <code>wp_list_categories()</code>, and ran the filter <code>add_nofollow_cat()</code> on the function<code> the_category()</code>.</p>
<p>Note: I don&#8217;t provide SEO advice to clients beyond my post <a href="http://www.billerickson.net/wordpress-seo/">Search Engine Optimization for WordPress</a>, so don&#8217;t ask me if this is right for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.billerickson.net/adding-nofollow-to-category-links/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Full Width Navigation in Thesis</title>
		<link>http://www.billerickson.net/thesis-wordpress-full-width-menu/</link>
		<comments>http://www.billerickson.net/thesis-wordpress-full-width-menu/#comments</comments>
		<pubDate>Mon, 31 May 2010 15:57:19 +0000</pubDate>
		<dc:creator>Bill Erickson</dc:creator>
				<category><![CDATA[Old]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[thesis-tip]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.billerickson.net/?p=1878</guid>
		<description><![CDATA[Create eye-catching, full-width menus for your Thesis site.]]></description>
			<content:encoded><![CDATA[<p>When building full-width Thesis websites, you&#8217;ll often want to apply a different background to the navigation and header area.</p>
<p>Using the hooks <code>thesis_hook_before_header</code> and <code>thesis_hook_after_header</code> won&#8217;t work, since they&#8217;ll put the navigation outside of <code>#header</code> but still inside <code>#header_area</code> (the full-width wrapper for <code>#header</code>). Here&#8217;s how you can stick it before or after the <code>#header_area</code>, in its own full-width wrapper.</p>
<h3>Navigation before the header</h3>
<p>We&#8217;ll remove the default navigation, add our new navigation function to the hook <code>thesis_hook_before_html</code>, then actually define the function.</p>
<pre class="brush: php; title: ; notranslate">remove_action('thesis_hook_before_header','thesis_nav_menu');
add_action('thesis_hook_before_html','custom_nav');

function custom_nav() { ?&gt;
&lt;div id=&quot;nav_area&quot; class=&quot;full_width&quot;&gt;	 &lt;div class=&quot;page&quot;&gt;	 &lt;?php thesis_nav_menu();?&gt;	 &lt;/div&gt;	&lt;/div&gt;
&lt;?php }</pre>
<h3>Navigation after the header</h3>
<p>We&#8217;re going to do the same as above, but use the hook <code>thesis_hook_before_content_area</code> instead of <code>thesis_hook_before_html</code>.</p>
<pre class="brush: php; title: ; notranslate">remove_action('thesis_hook_before_header','thesis_nav_menu');
add_action('thesis_hook_before_content_area','custom_nav');

function custom_nav() { ?&gt;
&lt;div id=&quot;nav_area&quot; class=&quot;full_width&quot;&gt;		&lt;div class=&quot;page&quot;&gt;			&lt;?php thesis_nav_menu();?&gt;		&lt;/div&gt;	&lt;/div&gt;
&lt;?php }</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.billerickson.net/thesis-wordpress-full-width-menu/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Adding Content Between Posts in Thesis</title>
		<link>http://www.billerickson.net/thesis-wordpress-add-content-between-posts/</link>
		<comments>http://www.billerickson.net/thesis-wordpress-add-content-between-posts/#comments</comments>
		<pubDate>Mon, 17 May 2010 16:21:55 +0000</pubDate>
		<dc:creator>Bill Erickson</dc:creator>
				<category><![CDATA[Old]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[intermediate]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[thesis-tip]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.billerickson.net/?p=1726</guid>
		<description><![CDATA[This shows you how to stick code between certain posts, but not all of them. It's very useful for including ads or other content you don't want repeated.]]></description>
			<content:encoded><![CDATA[<p>For a recent client project (<a href="http://www.futurecrimes.com">FutureCrimes.com</a>), they wanted to move the content typically found in a sidebar right in between the Featured posts and the Teasers. Luckily <a href="http://www.pearsonified.com/">Chris Pearson</a> added <code>thesis_hook_post_box_bottom</code> in the most recent release of Thesis.</p>
<p>Sticking code between the posts can be used to stick ads in the middle of the site, or anything else. If you want something to show up after certain posts, but not all, then follow this technique.</p>
<p>As a review, there&#8217;s three conditions for hooks, with the third one being optional (and needed for this example). It goes:<br />
<code>add_action('hook_name','function_name',position)</code><br />
On the site in question, we have 1 featured post followed by 10 teasers. So I&#8217;m going to use:</p>
<p><code>add_action('thesis_hook_post_box_bottom','homepage_widgets',1);</code><br />
I then put all the code I wanted to show up after the first post in the function <code>homepage_widgets()</code>.</p>
<p>Note that this will stick your function at the end of the first post box on every post, page and post aggregates (search, category, tag&#8230;). To limit it to just the homepage, your function should begin with <code>if(is_home()):</code> and end with <code>endif;</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.billerickson.net/thesis-wordpress-add-content-between-posts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Redirect Pages in Thesis</title>
		<link>http://www.billerickson.net/thesis-tip-wordpress-redirect-pages/</link>
		<comments>http://www.billerickson.net/thesis-tip-wordpress-redirect-pages/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 08:32:34 +0000</pubDate>
		<dc:creator>Bill Erickson</dc:creator>
				<category><![CDATA[Old]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[thesis-tip]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.billerickson.net/?p=1701</guid>
		<description><![CDATA[If you change a page's name and URL, you'll want to use this technique to make sure visitors to the old URL are redirected to the new one.]]></description>
			<content:encoded><![CDATA[<p>One of my favorite new features of <a href="/get-thesis">Thesis 1.7</a> is built-in support for 301 Redirects. A 301 Redirect tells browsers and search engines that a page has permanently moved and redirects a visitor to its new location.</p>
<p>If you ever change a page&#8217;s name and URL, you should use this so visitors to the old URL will automatically be redirected to the new one. For this example, we&#8217;ll be moving &#8220;mydomain.net/old-page&#8221; to &#8220;mydomain.net/new-page&#8221;.</p>
<p>If you&#8217;re using an older version of Thesis, or a different theme, you can use a <a href="http://wordpress.org/extend/plugins/redirection/">301 Redirect plugin</a>.</p>
<ul>
<li>Go to Pages &gt; Edit, click on Old Page, and change the page&#8217;s title and slug (right below the title it shows you the permalink; click the &#8220;Edit&#8221; button next to this) to New Page.</li>
<li>Go to Pages &gt; Add New and create a page called Old Page.</li>
<li>Scroll down to the section called &#8220;SEO Details and Additional Style&#8221; and put the URL to the New Page (http://mydomain.net/new-page) in the box called 301 Redirect.</li>
</ul>
<p>Now any time someone visits mydomain.com/old-page, they will automatically be redirected to New Page. This also tells search engines that the page has moved and apply all the link popularity that was going to Old Page to New Page. This means that there will be little change in your search engine rankings.</p>
<p>One final thing I&#8217;d like to point out is changing category slugs. A lot of times your URL for posts might contain the category. If you change the category name and slug, WordPress will automatically set up redirects for any link that contained the old category name. So if you changed &#8220;old-category&#8221; to &#8220;new-category&#8221;, http://mydomain.net/old-category/hello-world-post would automatically redirect to http://mydomain.net/new-category/hello-world-post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.billerickson.net/thesis-tip-wordpress-redirect-pages/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Custom Author Pages</title>
		<link>http://www.billerickson.net/wordpress-thesis-custom-author-page/</link>
		<comments>http://www.billerickson.net/wordpress-thesis-custom-author-page/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 14:05:47 +0000</pubDate>
		<dc:creator>Bill Erickson</dc:creator>
				<category><![CDATA[Old]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[advanced]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[thesis-tip]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.billerickson.net/?p=1670</guid>
		<description><![CDATA[Here's an overview on how to build an extremely custom Author Page for Thesis.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mintsocial.com/">Mint Social</a> recently hired me to build a custom author page that they could use for themselves and their clients. The requirements were:</p>
<ul>
<li>Work natively in Thesis (all built in custom_functions.php &#8211; no plugins)</li>
<li>Allow the author to easily edit his information from the WordPress administration area.</li>
<li>Lots of information (and almost all optional): Avatar, bio written in HTML, email author link, author&#8217;s address and map&#8230;and links to any social networks the author uses (we have about 35 built into the system)</li>
</ul>
<p>If you click on my name under this post&#8217;s title, you can see the end result.</p>
<p>While I can&#8217;t provide you with the exact code we used, I can show you the tutorials I&#8217;ve written that accomplish each part of this.</p>
<p>First, there&#8217;s two custom options pages:a site-wide one for the Google Maps API key,  and an author-specific one that contains all the author&#8217;s profile information. Each person who logs in will see their own version of this page.</p>
<p><img class="size-full wp-image-1673 alignright" title="details" src="http://www.billerickson.net/wp-content/uploads/2010/03/details.jpg" alt="" width="200" height="332" />Here is my tutorial on <a href="http://www.billerickson.net/thesis-wordpress-custom-options/">Custom Options Pages</a>. This tutorial actually walks you through setting up a site-wide one. To make a user-specific one, there&#8217;s a few things you&#8217;ll have to do differently:</p>
<ul>
<li>The add submenu page line should be changed to<br />
<code>add_submenu_page('users.php', 'Author Details', 'Author Details', 'edit_posts', 'author-details', 'author_details_admin');</code><br />
As <a href="http://codex.wordpress.org/Adding_Administration_Menus">the Codex</a> explains, this adds it as a submenu to the Users menu and gives access to anyone who has permission to edit posts (so Authors).</li>
<li>Instead of using <code>update_option()</code>, which updates a site-wide variable, you&#8217;ll use <code>update_usermeta()</code>, which links the variable to the user. That way, the field &#8220;Twitter ID&#8221; is linked to the user who inputs it, and doesn&#8217;t show up on other users&#8217; profiles. See <a href="http://codex.wordpress.org/Function_Reference/update_usermeta">update_usermeta</a> page in the Codex for information on how to use it.</li>
<li>Likewise, when retrieving the variables to display on the custom author page, you&#8217;ll use <code>get_usermeta()</code> rather than <code>get_option()</code>.</li>
</ul>
<p>So, you&#8217;ve created two options pages: Author Details and Google Maps API Key. Now you need to code the actual author page that uses these pages. Some helpful hints:</p>
<ul>
<li>To stick something on the author page, use the hook <code>thesis_hook_archive_info()</code>.</li>
<li>If you had multiple fields for the address in the options page like I did (Address Line 1, Address Line 2, City&#8230;) combine them all into one variable like this:<br />
<code>$fullAddress = $address . ' ' . $address2 . ' ' . $city . ', ' . $state . ' ' . $zip;</code></li>
<li>Use the <a href="http://www.billerickson.net/thesis-tip-13-using-gravatars-in-wordpress/">Gravatar tutorial</a> to add the author&#8217;s avatar.</li>
<li>Use the <a href="http://www.billerickson.net/integrate-google-maps-wordpress/">Google Maps tutorial</a> to add a map (use the <code>$fullAddress</code> variable you made above)</li>
<li>For the HTML bio, we originally had a box on the Author Details option page that allowed the author to write it. The client then requested we use an actual WordPress post so that the authors would have at least one post, and they&#8217;d be able to use the Visual editor to write their profile. So now in the option page we ask for the Post ID they want to use as their profile. Pick whichever method you prefer.</li>
</ul>
<p>I&#8217;m sorry I can&#8217;t be more helpful and provide the actual code, but my client hopes to sell this solution.  Hopefully you&#8217;ll be able to hack your own custom author page together.</p>
<p>If you do, please share it in the comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.billerickson.net/wordpress-thesis-custom-author-page/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Add Related Posts Before Comments Link in Thesis</title>
		<link>http://www.billerickson.net/thesis-wordpress-add-related-posts-comment-link/</link>
		<comments>http://www.billerickson.net/thesis-wordpress-add-related-posts-comment-link/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 10:34:09 +0000</pubDate>
		<dc:creator>Bill Erickson</dc:creator>
				<category><![CDATA[Old]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[thesis-tip]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.billerickson.net/?p=1656</guid>
		<description><![CDATA[Here's a quick tip on how to add Related Posts (or anything else) at the end of a post but before the comments link.]]></description>
			<content:encoded><![CDATA[<p>On one of my projects, the client needed a listing of Related Posts and the Add This link to show up below the post&#8217;s content, but before the Comments link (see the image above).</p>
<p>If you use <code>thesis_hook_after_post</code>, your function appears AFTER the Comments link. So what we need to do is remove the comments link, write a new function that contains Add This, Related Posts, and the Comments link function, and stick that at the end of the post. For the Related Posts, I&#8217;m using <a href="http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/">this plugin</a>.</p>
<pre class="brush: php; title: ; notranslate">/* Add This, Related Posts, and Comments */
remove_action('thesis_hook_after_post','thesis_comments_link');
function custom_related_posts() {
if(is_single() || is_front_page()): ?&gt;
[your AddThis.com code]
&lt;?php wp_related_posts();
thesis_comments_link();
endif;
}
add_action('thesis_hook_after_post','custom_related_posts');</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.billerickson.net/thesis-wordpress-add-related-posts-comment-link/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Using Gravatars in WordPress</title>
		<link>http://www.billerickson.net/using-gravatars-in-wordpress/</link>
		<comments>http://www.billerickson.net/using-gravatars-in-wordpress/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 08:00:37 +0000</pubDate>
		<dc:creator>Bill Erickson</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[intermediate]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[thesis-tip]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.billerickson.net/?p=1649</guid>
		<description><![CDATA[I'll show you how to display an author's gravatar next to post titles, and customize the default Gravatar for commenters who don't have one already.]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.gravatar.com/">Gravatars are Globally Recognized Avatars</a>. They are built into WordPress&#8217; comments by default, but there are some ways you can customize them. I&#8217;m going to outline two customizations I recently did for clients.</p>
<p>Note that the hooks I use here is specific to <a href="http://www.billerickson.net/get-thesis">Thesis</a>. If you&#8217;re using <a href="http://www.billerickson.net/get-genesis">Genesis</a> you should be able to replace the hooks with genesis ones ( <code>genesis_before_post_title</code> instead of <code>thesis_hook_before_headline</code> &#8230;). If you&#8217;re not using a framework, you can skip the functions/hooks and drop the code directly in your theme.</p>
<p><strong>Displaying an author&#8217;s gravatar next to posts</strong><br />
If you have multiple authors on your blog, you might like to display their picture next to posts. We&#8217;ll use the WordPress function <code>get_author()</code> (more information on this in the <a href="http://codex.wordpress.org/Using_Gravatars">WordPress Codex</a>).</p>
<p>First Function &#8211; Displays gravatar next to Features on homepage and individual post pages.<br />
<script src="https://gist.github.com/1325289.js"> </script></p>
<p>Second Function &#8211; This adds the gravatar next to the teasers (if you&#8217;re using them).</p>
<p><script src="https://gist.github.com/1325292.js"> </script></p>
<p><strong>Adding your own default Gravatar</strong></p>
<p><img src="http://www.billerickson.net/wp-content/uploads/2010/02/gravatar2.jpg" alt="" /></p>
<p>If your commenters don&#8217;t have a Gravatar, WordPress will show a default one. You can set your own default Gravatar (like your logo), by adding the following code to your functions.php file.</p>
<p><script src="https://gist.github.com/1325297.js"> </script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.billerickson.net/using-gravatars-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Adding Custom Headers to Category Pages in Thesis</title>
		<link>http://www.billerickson.net/custom-headers-category-page-thesis-wordpress/</link>
		<comments>http://www.billerickson.net/custom-headers-category-page-thesis-wordpress/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 09:31:19 +0000</pubDate>
		<dc:creator>Bill Erickson</dc:creator>
				<category><![CDATA[Old]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[thesis-tip]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.billerickson.net/?p=1639</guid>
		<description><![CDATA[This is how you can add custom introductory text or images to the top of category pages.]]></description>
			<content:encoded><![CDATA[<p><strong>Update: </strong>As of Thesis 1.8, this technique no longer works. Now if you want to add introductory text at the top of a category, simply go to Posts &gt; Categories, click &#8220;Edit&#8221; on the category you want, and add the text (or HTML) to &#8220;Introductory Content&#8221;.</p>
<p>&#8212;</p>
<p>You can add introductory text to the top of your category page by using the <code>thesis_hook_archive_info</code> hook.</p>
<p>For the following example, we&#8217;re assuming you have two categories for which you&#8217;d like intros, with the category slugs of <code>category-1</code> and <code>category-2</code>. You can use category names, id&#8217;s or slugs for this. See <a href="http://codex.wordpress.org/Conditional_Tags">The Codex</a> and scroll down to <code>is_category</code> for more information on usage.</p>
<p>In custom_functions.php:</p>
<pre class="brush: php; title: ; notranslate">function category_intro() {
if(is_category('category-1')) { ?&gt;
&lt;p&gt;This is the intro text for Category 1&lt;/p&gt;
&lt;?php }else if(is_category('category-2')) { ?&gt;
&lt;p&gt;This is the intro text for Category 2&lt;/p&gt;
&lt;?php }
}
add_action('thesis_hook_archive_info','category_intro');</pre>
<p>This will add the block of text above all the posts, but below the <code>archive_info</code> div (the part that says &#8220;From the Category Archives&#8221;) . You also might want to hide the <code>archive_info</code> div by putting this in your custom.css file:<br />
<code>.custom #archive_info {display:none;}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.billerickson.net/custom-headers-category-page-thesis-wordpress/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Clickable Logo in Header in Thesis</title>
		<link>http://www.billerickson.net/thesis-wordpress-click-logo-header/</link>
		<comments>http://www.billerickson.net/thesis-wordpress-click-logo-header/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 15:43:51 +0000</pubDate>
		<dc:creator>Bill Erickson</dc:creator>
				<category><![CDATA[Old]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[thesis-tip]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.billerickson.net/?p=1587</guid>
		<description><![CDATA[This is a simple but common mistake. When you replace the site title in the header with a custom logo, use this code to make it click through to your homepage.]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> As of Thesis 1.8, you can use the new Header Image option in the Thesis menu. In the admin area just go to Thesis &gt; Header Image to upload your image. The way described below still works (and is what I do), but this new way will let you add a logo without editing code.</p>
<p>&#8212;</p>
<p>One of the most common modifications to the Thesis theme is replacing the header text with your own custom logo or image. What a lot of people forget to do is add a bit more code to make that logo clickable.</p>
<ol>
<li>First, upload your logo to the  <code>/custom/images</code> folder.</li>
<li>Go to Thesis Options, and click &#8220;Header&#8221; under Display Options. Make sure &#8220;Show site name in header&#8221; is selected (it is by default).</li>
<li>Open custom.css, and paste the following code. Make sure you change the height and width to match your logo&#8217;s dimensions:</li>
</ol>
<blockquote><p><code>.custom #logo {background-image: url('images/logo.jpg'); background-repeat: no-repeat; width: 170px; height: 145px; text-indent: -9999px; }<br />
.custom #logo a {width: 170px; height: 145px; display: block; outline: none;}<br />
</code></p></blockquote>
<p>That second line is what a lot of people forget. If you don&#8217;t include it, you&#8217;ll have the logo up there but it won&#8217;t be clickable. Now, when someone clicks it they are sent to the homepage.</p>
<p>And that&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.billerickson.net/thesis-wordpress-click-logo-header/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>

