<?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>Guillermo Rauch&#039;s Devthought &#187; seo</title>
	<atom:link href="http://www.devthought.com/tag/seo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devthought.com</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 16:38:59 +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>Append your blog description to the window title in WordPress</title>
		<link>http://www.devthought.com/2009/01/29/append-your-blog-description-to-the-window-title-in-wordpress/</link>
		<comments>http://www.devthought.com/2009/01/29/append-your-blog-description-to-the-window-title-in-wordpress/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 06:07:46 +0000</pubDate>
		<dc:creator>Guillermo Rauch</dc:creator>
				<category><![CDATA[Tumble]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://devthought/?p=217</guid>
		<description><![CDATA[I wanted my homepage title to reveal my writing goals and interests. The importance of the title, to me, is obvious: It&#8217;s one of the first things people notice. It&#8217;s visible in the window chrome, the tabs, the bookmarks It&#8217;s &#8230; <a href="http://www.devthought.com/2009/01/29/append-your-blog-description-to-the-window-title-in-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I wanted my homepage title to reveal my writing goals and interests. The importance of the title, to me, is obvious:</p>
<ul>
<li>It&#8217;s one of the first things people notice.</li>
<li>It&#8217;s visible in the window chrome, the tabs, the bookmarks</li>
<li>It&#8217;s something search engines pay attention to</li>
</ul>
<p>WordPress settings allow you to set the blog title and description. With this modification, the description will be appended whenever a post title is not displayed, to avoid making it extremely long.</p>
<p>Edit the <strong>functions.php</strong> file of your template and append:</p>
<pre class='highlight ' lang="php" line="1">
add_filter('wp_title', 'dv_wp_title', 100, 3);

$dv_append_subtitle = false;

function dv_wp_title($title)
{
  global $dv_append_subtitle;

  if($title === '')
    $dv_append_subtitle = true;

  return $title;
}

function dv_the_subtitle($sep = '&mdash;')
{
  global $dv_append_subtitle;

  if($dv_append_subtitle)
  {
    echo $sep ? $sep . ' ' : '';
    bloginfo('description');
  }
}
</pre>
<p>Then go to <strong>header.php</strong> and make your title tag look like this (notice that I added the dv_the_subtitle call)</p>
<pre class='highlight ' lang="html4strict">
</pre>
<p>And that&#8217;s it! If you want to customize the separator, which defaults to &mdash; pass it as an argument to dv_the_subtitle.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devthought.com/2009/01/29/append-your-blog-description-to-the-window-title-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

