<?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>WP Garage &#187; widgetized sidebar</title>
	<atom:link href="http://wpgarage.com/tag/widgetized-sidebar/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpgarage.com</link>
	<description>wordpress tricks, hacks, and tips</description>
	<lastBuildDate>Wed, 16 Nov 2011 14:36:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to rename widgetized sidebars in WordPress</title>
		<link>http://wpgarage.com/code-snippets/rename-widgetized-sidebars-in-wordpress/</link>
		<comments>http://wpgarage.com/code-snippets/rename-widgetized-sidebars-in-wordpress/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 11:01:08 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[WordPress as CMS]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[names]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[widgetized sidebar]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://wordpressgarage.com/code-snippets/rename-widgetized-sidebars-in-wordpress/</guid>
		<description><![CDATA[<p>You can manage multiple sidebar widgets in WordPress. To do so, you go to the Widgets page in the Admin, and select the Sidebar you want to manage. If you have 1 widgetized sidebar, the name &#8220;Sidebar 1&#8243; is not a big deal for managing it. But what if you have 5 or more, and [...]</p><p>This post was originally published at <a href="http://wpgarage.com/code-snippets/rename-widgetized-sidebars-in-wordpress/">How to rename widgetized sidebars in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/code-snippets/rename-widgetized-sidebars-in-wordpress/" data-url="http://illum.in/oYtUpp" data-text="How to rename widgetized sidebars in WordPress" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://wpgarage.com/code-snippets/rename-widgetized-sidebars-in-wordpress/&amp;layout=box_count&amp;show_faces=true&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/code-snippets/rename-widgetized-sidebars-in-wordpress/"></g:plusone></div></div><p>You can manage multiple sidebar widgets in WordPress. To do so, you go to the Widgets page in the Admin, and select the Sidebar you want to manage. If you have 1 widgetized sidebar, the name &#8220;Sidebar 1&#8243;  is not a big deal for managing it. But what if you have 5 or more, and they&#8217;re named Sidebar 1, Sidebar 2, etc. Ah yes, now what was  that wily sidebar 3 for?</p>
<p>Why would someone have so many sidebars to begin with? Well, remember that you can also add <a href="http://www.sueblimely.com/add-widget-ready-sidebars-to-wordpress-footers/">widget-ready sidebars to WordPress footers</a> or anywhere in your design, to give extra content management options to clients.</p>
<p>Recently, we had a client with way too many widgetized sidebars to  keep track of, so we had to find a new solution to change the standard widget sidebar names like &#8220;sidebar 1&#8243; or &#8220;sidebar 2&#8243; to something  more meaningful like &#8220;Left sidebar&#8221; and &#8220;Right sidebar&#8221; in the admin  area. I dug around the web and found 2 very helpful posts:</p>
<ul>
<li><a href="http://www.blogherald.com/2007/05/24/how-to-use-widgets-with-more-than-one-sidebar-on-your-wordpress-blog/">How to use widgets with more than one sidebar on your WordPress blog</a></li>
<li><a href="http://internetducttape.com/2007/04/09/howto-design-a-variable-sidebar-wordpress-theme-with-widgets/">How to design a variable sidebar WordPress theme with widgets (by guest blogger Daria Black)</a></li>
</ul>
<p>Here&#8217;s what I learned:</p>
<p>1. Go into your themes&#8217;s <strong>function.php </strong>file, or if it doesn&#8217;t exist, create it.</p>
<p>Add the following code:</p>
<blockquote><p><strong>&lt;?php</strong></p>
<p><strong> if (function_exists(&#8216;register_sidebar&#8217;))</strong></p>
<p><strong>{</strong></p>
<p><strong>register_sidebar(array(</strong></p>
<p><strong>&#8216;before_widget&#8217; =&gt; &#8216;&lt;li&gt;&#8217;,</strong></p>
<p><strong>&#8216;after_widget&#8217; =&gt; &#8216;&lt;/li&gt;&#8217;,</strong></p>
<p><strong>&#8216;before_title&#8217; =&gt; &#8216;&lt;h4&gt;&#8217;,</strong></p>
<p><strong>&#8216;after_title&#8217; =&gt; &#8216;&lt;/h4&gt;&#8217;,</strong></p>
<p><strong></strong><strong>&#8216;name&#8217; =&gt; &#8216;Left sidebar&#8217;</strong></p>
<p><strong>));</strong></p>
<p><strong>register_sidebar(array(</strong></p>
<p><strong>&#8216;before_widget&#8217; =&gt; &#8216;&lt;li&gt;&#8217;,</strong></p>
<p><strong>&#8216;after_widget&#8217; =&gt; &#8216;&lt;/li&gt;&#8217;,</strong></p>
<p><strong>&#8216;before_title&#8217; =&gt; &#8216;&lt;h4&gt;&#8217;,</strong></p>
<p><strong>&#8216;after_title&#8217; =&gt; &#8216;&lt;/h4&gt;&#8217;,</strong></p>
<p><strong>&#8216;name&#8217; =&gt; &#8216;Right sidebar&#8217;</strong></p>
<p><strong>));</strong></p>
<p><strong>}</strong></p>
<p><strong>?&gt;</strong></p></blockquote>
<p>2a. Add a widgetized sidebar to your theme. Open up your theme&#8217;s sidebar file (for exampe, l_sidebar.php) and look for the first &lt;ul&gt; or &lt;ul id=&#8221;sidebar&#8221;&gt; or something similar, and add the following code:</p>
<blockquote><p><strong>&lt;?php if ( !function_exists(&#8216;dynamic_sidebar&#8217;) || !dynamic_sidebar(&#8216;Left sidebar&#8217;) ) : ?&gt;</strong></p></blockquote>
<p>2b. If your sidebar is already widgetized, find the following code</p>
<blockquote>
<blockquote><p><strong>&lt;?php if ( function_exists(&#8216;dynamic_sidebar&#8217;) &amp;&amp; dynamic_sidebar(1) ) : else : ?&gt;</strong></p></blockquote>
<p>and replace it with</p>
<blockquote><p><strong>&lt;?php if ( !function_exists(&#8216;dynamic_sidebar&#8217;) || !dynamic_sidebar(&#8216;Left sidebar&#8217;) ) : ?&gt;</strong></p></blockquote>
</blockquote>
<p>Then, find the closing &lt;/ul&gt; at the very bottom of the file, and immediately before that, place</p>
<p><strong>&lt;?php endif; ?&gt;</strong></p>
<p>3. Now, if you go into your admin panel, under Design&gt;Widgets, you&#8217;ll see the new names like in the image below.</p>
<p><img class="alignnone size-full wp-image-381" title="widgets" src="http://wpgarage.com/wp-content/uploads/2008/11/widgets.png" alt="" width="312" height="165" /></p>
<p>Now you can easily manage your Widgets without trying to guess which one is which.</p>
<p>This post was originally published at <a href="http://wpgarage.com/code-snippets/rename-widgetized-sidebars-in-wordpress/">How to rename widgetized sidebars in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/code-snippets/rename-widgetized-sidebars-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

