<?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>Banana Munki &#187; WordPress</title>
	<atom:link href="http://banana.munki.se/category/computer-internet/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://banana.munki.se</link>
	<description>Another smashing personal blog</description>
	<lastBuildDate>Tue, 27 Jul 2010 22:42:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=7744</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress: Three column widgetized footer</title>
		<link>http://banana.munki.se/wordpress/wordpress-three-column-widgetized-footer/</link>
		<comments>http://banana.munki.se/wordpress/wordpress-three-column-widgetized-footer/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 23:16:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[HowTo]]></category>

		<guid isPermaLink="false">http://banana.munki.se/?p=1322</guid>
		<description><![CDATA[A cluttered sidebar can be ugly. A good way to keep a WordPress blog looking better is a classic three column footer for your stuff. I like when blog owners show some organization sense. I am going to show you how I added three widgetized columns to an empty footer. 1: We are going to [...]]]></description>
			<content:encoded><![CDATA[<p>A cluttered sidebar can be ugly. A good way to keep a WordPress blog looking better is a classic <strong>three column footer</strong> for your stuff. I like when blog owners show some organization sense.</p>
<p>I am going to show you how I added <strong>three widgetized columns</strong> to an empty footer.</p>
<h3>1:</h3>
<p> We are going to need the <strong>functions.php</strong> file. You can find this located in your theme folder. Path example:  <em>banana.munki.se/wp-content/themes/mytheme/functions.php</em>. You can create this file if your theme doesn&#8217;t use one.</p>
<pre name="code" class="php">
if ( function_exists('dynamic_sidebar') )
register_sidebar(array('name'=>'Footer widget left',
'before_widget' => '
<div class="widget widget_footer">',
'after_widget' => '</div>

',
'before_title' => '
<h3>',
'after_title' => '</h3>

',
));
if ( function_exists('dynamic_sidebar') )
register_sidebar(array('name'=>'Footer widget middle',
'before_widget' => '
<div class="widget widget_footer">',
'after_widget' => '</div>

',
'before_title' => '
<h3>',
'after_title' => '</h3>

',
));
if ( function_exists('dynamic_sidebar') )
register_sidebar(array('name'=>'Footer widget right',
'before_widget' => '
<div class="widget widget_footer">',
'after_widget' => '</div>

',
'before_title' => '
<h3>',
'after_title' => '</h3>

',
));
</pre>
<p>The code above is placed/pasted into the functions.php file. It generates information needed to create and display widgets. </p>
<h3>2:</h3>
<p> The following piece of code should be placed where you want the three columns to be visible, <em>the footer</em>. Open up your <strong>footer.php</strong> and see where to place this, usually right after div id=&#8221;footer&#8221;. The footer.php file of your template can find in your theme folder. Example path: <em>banana.munkise/wp-content/themes/mytheme/footer.php</em></p>
<p><textarea name="code" class="php" cols="60" rows="10"><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer widget left') ) : ?><br />
<?php endif; ?><br />
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer widget middle') ) : ?><br />
<?php endif; ?><br />
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer widget right') ) : ?><br />
<?php endif; ?><br />
</textarea></p>
<p>The above code make the <strong>three column widgets</strong> appear on your WordPress blog.<br />
Note: The br /&#8217;s rendered with the above code are automatically inserted within my blogpost and shouldn&#8217;t be added by you, you can safely (and should) erase them. I am sorry about this. :/</p>
<h3>3:</h3>
<p> The final step is to tell the columns how to behave. We want to display them horizontally, on a row next to eachother. We make this happen with CSS. Make note that you may just (most likely) need to adjust the width and/or margin to make fit with the theme that you are using. The following piece of CSS should go in your theme <strong>style.css</strong> file located in your theme folder. Example path: <em>banana.munki.se/wp-content/themes/mytheme/style.css</em></p>
<pre name="code" class="css">
.widget_footer {float: left; margin: 0 20px 20px 0; width: 300px;}
</pre>
<p>The <em>class</em> <strong>footer_widget</strong> was used in the first piece of code pasted into the <strong>functions.php</strong> so now we just have to use it in the style sheet to tell the columns how to behave and how to display the content of the widgets on the blog.</p>
<h3>4:</h3>
<p>Now you can navigate to the widget section of your WordPress installation and start organizing. <img src='http://banana.munki.se/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>Final note:</h3>
<p> Additionally a <em>div clear=&#8221;both</em> or similar may need to be inserted in the footer.php after the code to clear the float! This could depend on wheither or not your theme already have a solution.</p>
<p>Good luck with this. If you have any questions I&#8217;d be glad to answer them. </p>
<p><strong>Happy Widgetizing!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://banana.munki.se/wordpress/wordpress-three-column-widgetized-footer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
