<?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>Ken H. Judy &#187; widget</title>
	<atom:link href="http://judykat.com/ken-judy/tag/widget/feed/" rel="self" type="application/rss+xml" />
	<link>http://judykat.com/ken-judy</link>
	<description>Scrum, XP, Management and the Ethics of Agile Software Development</description>
	<lastBuildDate>Mon, 12 Jul 2010 19:35:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>How to make wordpress sidebars only appear on certain pages for search engine optimization</title>
		<link>http://judykat.com/ken-judy/wordpress-sidebars-pages-search-engine-optimization/</link>
		<comments>http://judykat.com/ken-judy/wordpress-sidebars-pages-search-engine-optimization/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 03:01:48 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[software development]]></category>
		<category><![CDATA[blogroll site]]></category>
		<category><![CDATA[external social networking arcana]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[search engine]]></category>
		<category><![CDATA[search engine optimization]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://judykat.com/ken-judy/?p=1500</guid>
		<description><![CDATA[SEO recommendations are to limit sitewide links. One way to address this is to make blogrolls and other non-contextual links of your WordPress sidebar appear only on the homepage. This is easy to achieve with dynamic sidebars with simple customizations to your blog theme.]]></description>
			<content:encoded><![CDATA[<p>I was reading the recommendations in <a href="http://yoast.com/articles/wordpress-seo/">yoast.com&#8217;s post on wordpress seo</a>.</p>
<blockquote><p>Do you really need to link out to all your buddies in your blogroll site wide? Or is it perhaps wiser to just do that on your front page?</p></blockquote>
<p>I want to link out on my homepage but I don&#8217;t need my sidebar to extend two screens below the content on my individual post pages.</p>
<p>So, it appears desirable to have elements of the sidebar (e.g. the blogroll and external social networking arcana) only appear on the homepage of my blog.</p>
<p>Thanks to some sample code from <a href="http://wpcandy.com/articles/tutorials/how-to-make-the-most-out-of-your-sidebar.html">wpcandy.com</a>, this was trivially easy to implement.</p>
<p>I modified the functions.php in my theme to register three sidebars. I called them Top Right Sidebar, Front Page Sidebar, and Bottom Right Sidebar.</p>
<p><code><br />
if ( function_exists('register_sidebar') )<br />	register_sidebar(array(<br />		'name' =&gt; 'Top Right Sidebar',<br />		'before_widget' =&gt; '', // Removes &lt;li&gt;<br />		'after_widget' =&gt; '', // Removes &lt;/li&gt;<br />		'before_title' =&gt; '&lt;h2&gt;',<br />		'after_title' =&gt; '&lt;/h2&gt;',<br />	));</p>
<p>if ( function_exists('register_sidebar') )<br />	register_sidebar(array(<br />		'name' =&gt; 'Front Page Sidebar',<br />		'before_widget' =&gt; '', // Removes &lt;li&gt;<br />		'after_widget' =&gt; '', // Removes &lt;/li&gt;<br />		'before_title' =&gt; '&lt;h2&gt;',<br />		'after_title' =&gt; '&lt;/h2&gt;',<br />	));</p>
<p>if ( function_exists('register_sidebar') )<br />	register_sidebar(array(<br />		'name' =&gt; 'Bottom Right Sidebar',<br />		'before_widget' =&gt; '', // Removes &lt;li&gt;<br />		'after_widget' =&gt; '', // Removes &lt;/li&gt;<br />		'before_title' =&gt; '&lt;h2&gt;',<br />		'after_title' =&gt; '&lt;/h2&gt;',<br />	));<br />
</code></p>
<p>Then I modified my sidebar.php to render those three sidebars if the <code>dynamic_sidebar</code> function exists also making the <em>Front Page Sidebar</em> conditional on <code>is_front_page()</code>.<br />
<code><br />
&lt;?php <br />if ( function_exists('dynamic_sidebar') &#038;&#038; dynamic_sidebar('Top Right Sidebar') ) : else : <br />?&gt;<br />
<span style="color:#666;">//default markup for the top sidebar goes here</span><br />&lt;?php endif; ?&gt;<br />
<span style="color:#666;">//renders only if the current page is the front page, i.e. is_front_page()</span><br />&lt;?php if ( function_exists('dynamic_sidebar') &#038;&#038; <br />      is_front_page() &#038;&#038; dynamic_sidebar('Front Page Sidebar') ) {} ?&gt;<br />
&lt;?php <br />if ( function_exists('dynamic_sidebar') &#038;&#038; dynamic_sidebar('Bottom Right Sidebar') ) : else : <br />?&gt;<br />
<span style="color:#666;">//default markup for the bottom sidebar goes here</span><br />&lt;?php endif; ?&gt;</code></p>
<p><img alt="WordPress Widget Admin Page" src="http://files.me.com/kenjudy/ni23av" title="WordPress Widget Admin Page" class="alignright" width="305" height="634" />In my widgets admin I now have three sidebars listed:</p>
<ul>
<li>They are defined in my theme&#8217;s functions.php. </li>
<li>They render stacked one on top of the other based on the markup in sidebar.php.</li>
<li>I can populate them in the widget admin.</li>
<li> The middle bar only appears on the homepage.</li>
</ul>

<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="mailto:?subject=How%20to%20make%20wordpress%20sidebars%20only%20appear%20on%20certain%20pages%20for%20search%20engine%20optimization%20&amp;body=http%3A%2F%2Fjudykat.com%2Fken-judy%2Fwordpress-sidebars-pages-search-engine-optimization%2F" title="email"><img src="http://judykat.com/ken-judy/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fjudykat.com%2Fken-judy%2Fwordpress-sidebars-pages-search-engine-optimization%2F&amp;partner=sociable" title="Print"><img src="http://judykat.com/ken-judy/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fjudykat.com%2Fken-judy%2Fwordpress-sidebars-pages-search-engine-optimization%2F&amp;title=How%20to%20make%20wordpress%20sidebars%20only%20appear%20on%20certain%20pages%20for%20search%20engine%20optimization%20&amp;bodytext=SEO%20recommendations%20are%20to%20limit%20sitewide%20links.%20One%20way%20to%20address%20this%20is%20to%20make%20blogrolls%20and%20other%20non-contextual%20links%20of%20your%20WordPress%20sidebar%20appear%20only%20on%20the%20homepage.%20This%20is%20easy%20to%20achieve%20with%20dynamic%20sidebars%20with%20simple%20customizations%20to%20your%20blog%20theme." title="Digg"><img src="http://judykat.com/ken-judy/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fjudykat.com%2Fken-judy%2Fwordpress-sidebars-pages-search-engine-optimization%2F&amp;title=How%20to%20make%20wordpress%20sidebars%20only%20appear%20on%20certain%20pages%20for%20search%20engine%20optimization%20" title="Reddit"><img src="http://judykat.com/ken-judy/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fjudykat.com%2Fken-judy%2Fwordpress-sidebars-pages-search-engine-optimization%2F&amp;title=How%20to%20make%20wordpress%20sidebars%20only%20appear%20on%20certain%20pages%20for%20search%20engine%20optimization%20" title="StumbleUpon"><img src="http://judykat.com/ken-judy/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fjudykat.com%2Fken-judy%2Fwordpress-sidebars-pages-search-engine-optimization%2F&amp;title=How%20to%20make%20wordpress%20sidebars%20only%20appear%20on%20certain%20pages%20for%20search%20engine%20optimization%20&amp;annotation=SEO%20recommendations%20are%20to%20limit%20sitewide%20links.%20One%20way%20to%20address%20this%20is%20to%20make%20blogrolls%20and%20other%20non-contextual%20links%20of%20your%20WordPress%20sidebar%20appear%20only%20on%20the%20homepage.%20This%20is%20easy%20to%20achieve%20with%20dynamic%20sidebars%20with%20simple%20customizations%20to%20your%20blog%20theme." title="Google Bookmarks"><img src="http://judykat.com/ken-judy/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fjudykat.com%2Fken-judy%2Fwordpress-sidebars-pages-search-engine-optimization%2F&amp;title=How%20to%20make%20wordpress%20sidebars%20only%20appear%20on%20certain%20pages%20for%20search%20engine%20optimization%20&amp;notes=SEO%20recommendations%20are%20to%20limit%20sitewide%20links.%20One%20way%20to%20address%20this%20is%20to%20make%20blogrolls%20and%20other%20non-contextual%20links%20of%20your%20WordPress%20sidebar%20appear%20only%20on%20the%20homepage.%20This%20is%20easy%20to%20achieve%20with%20dynamic%20sidebars%20with%20simple%20customizations%20to%20your%20blog%20theme." title="del.icio.us"><img src="http://judykat.com/ken-judy/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fjudykat.com%2Fken-judy%2Fwordpress-sidebars-pages-search-engine-optimization%2F&amp;title=How%20to%20make%20wordpress%20sidebars%20only%20appear%20on%20certain%20pages%20for%20search%20engine%20optimization%20&amp;source=Ken+H.+Judy+Scrum%2C+XP%2C+Management+and+the+Ethics+of+Agile+Software+Development&amp;summary=SEO%20recommendations%20are%20to%20limit%20sitewide%20links.%20One%20way%20to%20address%20this%20is%20to%20make%20blogrolls%20and%20other%20non-contextual%20links%20of%20your%20WordPress%20sidebar%20appear%20only%20on%20the%20homepage.%20This%20is%20easy%20to%20achieve%20with%20dynamic%20sidebars%20with%20simple%20customizations%20to%20your%20blog%20theme." title="LinkedIn"><img src="http://judykat.com/ken-judy/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fjudykat.com%2Fken-judy%2Fwordpress-sidebars-pages-search-engine-optimization%2F&amp;t=How%20to%20make%20wordpress%20sidebars%20only%20appear%20on%20certain%20pages%20for%20search%20engine%20optimization%20" title="Facebook"><img src="http://judykat.com/ken-judy/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://twitter.com/home?status=How%20to%20make%20wordpress%20sidebars%20only%20appear%20on%20certain%20pages%20for%20search%20engine%20optimization%20%20-%20http%3A%2F%2Fjudykat.com%2Fken-judy%2Fwordpress-sidebars-pages-search-engine-optimization%2F" title="Twitter"><img src="http://judykat.com/ken-judy/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://judykat.com/ken-judy/wordpress-sidebars-pages-search-engine-optimization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
