<?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>Recadesign</title>
	<atom:link href="http://www.recadesign.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.recadesign.com</link>
	<description>Freelance Web Designer Portofolio/Blog -- Dream -- Create -- Enjoy --</description>
	<lastBuildDate>Mon, 19 Dec 2011 15:03:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to Create / Add  Widget  Areas in a WordPress Theme (detailed)</title>
		<link>http://www.recadesign.com/2011/how-to-createadd-widget-areas-in-a-wordpress-theme-detailed/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-createadd-widget-areas-in-a-wordpress-theme-detailed</link>
		<comments>http://www.recadesign.com/2011/how-to-createadd-widget-areas-in-a-wordpress-theme-detailed/#comments</comments>
		<pubDate>Wed, 25 May 2011 08:51:49 +0000</pubDate>
		<dc:creator>Reca Design</dc:creator>
				<category><![CDATA[Web design]]></category>
		<category><![CDATA[Wordpress tricks]]></category>

		<guid isPermaLink="false">http://www.recadesign.com/?p=380</guid>
		<description><![CDATA[<a href="#"><img src="http://www.recadesign.com/wp-content/uploads/2011/05/widgeta-area.png" alt="" title="widget-area" width="308" height="236" class="alignright size-full wp-image-454" /></a>When you code a WordPress theme one of the most important features of your theme will be the Widget Areas. Thanks to this amazing CMS this procedure could not be easier, in just two simple steps you can add as many widget areas as you want. You will have to add the first piece of code to your functions.php file which will register your widget areas and then the second piece of code which will generate the necessary  html code of the widget used in that specific widget area. Also I will try to cast a light on which is happening inside the function that creates the widget area. <a href="http://www.recadesign.com/2011/how-to-createadd-widget-areas-in-a-wordpress-theme-detailed/"><span class="meta-nav">Read more</span></a><div class="tentblogger-rss-footer"><hr /><p>You just finished reading <a href="http://www.recadesign.com/?p=380">How to Create / Add  Widget  Areas in a WordPress Theme (detailed)</a>!  Consider leaving a comment!</p><p></p></div>]]></description>
			<content:encoded><![CDATA[<p><a href="#"><img src="http://www.recadesign.com/wp-content/uploads/2011/05/widgeta-area.png" alt="" title="widget-area" width="308" height="236" class="alignright size-full wp-image-454" /></a>When you code a WordPress theme one of the most important features of your theme will be the Widget Areas. Thanks to this amazing CMS this procedure could not be easier, in just two simple steps you can add as many widget areas as you want. You will have to add the first piece of code to your functions.php file which will register your widget areas and then the second piece of code which will generate the necessary  html code of the widget used in that specific widget area. Also I will try to cast a light on which is happening inside the function that creates the widget area.<br />
<span id="more-380"></span></p>
<p class="clr"> &nbsp;</p>
<h3>Step One :  Adding the &#8220;Magic&#8221; code to functions.php</h3>
<p> &nbsp;</p>
<p>You just copy paste the following code in your functions.php file just below the <code>< ?php</code> opening tag.<br />
This wil create us two widget areas. In case you are on modifying a WordPress theme and you already have widget areas defined in the functions.php but need to add more, then is much simpler and I will show you that as well! </p>
<p>This is the code for new widget areas</p>
<pre class="brush: php; title: ; notranslate">
function new_widgets_init() {
register_sidebar( array(
'name' =&gt; 'First Widget Area',
'id' =&gt; 'first-widget-area',
'description' =&gt; __( 'This Is The First  Widget Area '),
'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;',
'after_widget' =&gt; &quot;&lt;/li&gt;&quot;,
'before_title' =&gt; '&lt;h3 class=&quot;widget-title&quot;&gt;',
'after_title' =&gt; '&lt;/h3&gt;',
) );
register_sidebar( array(
'name' =&gt; 'Second Widget Area',
'id' =&gt; 'second-widget-area',
'description' =&gt; __( 'This Is The Second Widget Area'),
'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;',
'after_widget' =&gt; &quot;&lt;/li&gt;&quot;,
'before_title' =&gt; '&lt;h3 class=&quot;widget-title&quot;&gt;',
'after_title' =&gt; '&lt;/h3&gt;',
) );
}
// Add the widget areas
add_action( 'init', 'new_widgets_init' );

?&gt;
</pre>
<p>This is the code to add new widget area if you are just modifying a theme and you already have this defined in the functions.php file. This has to be add after the last array just before the "}" (of course you can rename the 'name' 'id' and 'description' to suit your needs ) Step Two applies here as well!</p>
<pre class="brush: php; title: ; notranslate">
register_sidebar( array(
'name' =&gt; 'Your New Widget Area ',
'id' =&gt; 'your-new-widget-area',
'description' =&gt; __( 'This Is Your New Widget  Area'),
'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;',
'after_widget' =&gt; &quot;&lt;/li&gt;&quot;,
'before_title' =&gt; '&lt;h3 class=&quot;widget-title&quot;&gt;',
'after_title' =&gt; '&lt;/h3&gt;',
) );
</pre>
<p> &nbsp;</p>
<h3>Step Two: Calling the widgets from theme template</h3>
<p> &nbsp;</p>
<p>Calling your newly made widgetized areas is same as calling other widget areas present in the theme. To call it use the following piece of code. Pay attention that the argument in  </code><code>dynamic_sidebar('argument')</code>  in our case &#8220;First Widget Area&#8221; and &#8220;Second Widget Area&#8221; must match with the name listed under the <code>'name' => 'argument'</code> in the widget area array.<br />
</p>
<pre class="brush: php; title: ; notranslate">
&lt; ?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('First Widget Area') ) : ?&gt;
&lt; ?php endif; ?&gt;
</pre>
<p> &nbsp;</p>
<p>and / or</p>
<p> &nbsp;</p>
<pre class="brush: php; title: ; notranslate">
&lt; ?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Second Widget Area') ) : ?&gt;
&lt; ?php endif; ?&gt;
</pre>
<p> &nbsp;</p>
<h3>Where to put the widget calling code?!</h3>
<p> &nbsp;</p>
<p>Well&#8230; this code can be used anywhere in your theme (header, sidebar, footer, even in the main content area in special cases). Here is an example of how it should look like in a theme file.</p>
<pre class="brush: php; title: ; notranslate">
&lt;div id=&quot;first&quot; class=&quot;widget-area&quot;&gt;
   &lt;ul class=&quot;your-class&quot;&gt;

         &lt; ?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('First Widget Area') ) : ?&gt;
          &lt;?php endif; ?&gt;

    &lt;/ul&gt;
&lt;/div&gt;&lt;!-- #first .widget-area --&gt;
</pre>
<div class="pbl"></div>
<p></p>
<h2>How the widget generator code works?</h2>
<p> &nbsp;</p>
<p> &nbsp;</p>
<pre class="brush: php; title: ; notranslate">function new_widgets_init() {</pre>
<p>Here the magic starts, we define the name of our function called <code>new_widgets_init()</code> and we start to build the function itself.</p>
<p> &nbsp;</p>
<p> &nbsp;</p>
<pre class="brush: php; title: ; notranslate">'name' =&gt; ' First Widget Area ',</pre>
<p> This part of the Code is responsible for the name of the widget area which is displayed under dashboard -> widgets and also is used to connect the widget array from functions.php with the code that was placed in the theme file (see step Two) this is very important! </p>
<p> &nbsp;</p>
<p> &nbsp;</p>
<pre class="brush: php; title: ; notranslate">'id' =&gt; 'first-widget-area',</pre>
<p>The id is used to keep track of the numbers of widget areas in a self explanatory way and you can name it however you like, just pay attention to separate words with a single line “–“ otherwise you will have problems when you drag and drop widgets in the specific widget area (it will stick there and you will not be able to drag it out) . Note that the id must be unique for each widget array, if we have duplicate id-s in the widget array list, then the last duplicate id will override the one before and only the duplicate widget area will show up under the dashboard -> widgets.</p>
<p> &nbsp;</p>
<p> &nbsp;</p>
<pre class="brush: php; title: ; notranslate">'description' =&gt; __( 'This Is The First  Widget Area' ),</pre>
<p>This is simple&#8230; I am sure that you already have an idea about what this bit of code does. Yes, this is responsible for  the description  of the widget area.</p>
<p> &nbsp;</p>
<p> &nbsp;</p>
<pre class="brush: php; title: ; notranslate">'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot; class=&quot;widget-container %2$s&quot;&gt;',</pre>
<p>This bit of code generates the opening tag <code>"< li >"</code> of the html list displayed on the website. As you can see it gives us an unique id and class to help us customize the widget areas.</p>
<p> &nbsp;</p>
<p> &nbsp;</p>
<pre class="brush: php; title: ; notranslate">'after_widget' =&gt; &quot;&lt;/li&gt;&quot;,</pre>
<p>Well&#8230; you can guess what this does, is closing our list. </p>
<p> &nbsp;</p>
<p> &nbsp;</p>
<pre class="brush: php; title: ; notranslate">'before_title' =&gt; '&lt;h3 class=&quot;widget-title&quot;&gt;',</pre>
<p>Yes this is the opening tag of our title and it has a class so we can easily identify and customize it from the style-sheet.</p>
<p> &nbsp;</p>
<p> &nbsp;</p>
<h4>
<pre class="brush: php; title: ; notranslate">'after_title' =&gt; '&lt;/h3&gt;',</pre>
</h4>
<p>And of course as you expected, the closing tag of the title.</p>
<p> &nbsp;</p>
<p> &nbsp;</p>
<pre class="brush: php; title: ; notranslate">add_action( 'init', 'new_widgets_init' );

?&gt;</pre>
<p>This is the last bit of code called the <a href="http://codex.wordpress.org/Plugin_API" target="_blank"title="more details about WordPress action hook">action hook</a> which tells WordPress to run our function defined above.  Note that the second argument of the action hook is the name of our function <code>new_widgets_init</code>  this must be the same which was defined  here <code>function new_widgets_init() {</code> .</p>
<p> &nbsp;</p>
<p> &nbsp;</p>
<p>Finally, I would like to point out that this is only one way to create/add widget areas, if you take a look at different themes and tutorials, you will see that there are other more complex ways to do this, but hopefully I managed to give you an idea about how it works and hope you&#8217;ll feel more confident playing with WordPress.</p>
<p> &nbsp;</p>
<p>Have Fun!</p>
<p> &nbsp;</p>
<div class="tentblogger-rss-footer"><hr /><p>You just finished reading <a href="http://www.recadesign.com/?p=380">How to Create / Add  Widget  Areas in a WordPress Theme (detailed)</a>!  Consider leaving a comment!</p><p></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.recadesign.com/2011/how-to-createadd-widget-areas-in-a-wordpress-theme-detailed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recadesign &#8220;Dawn&#8221; theme</title>
		<link>http://www.recadesign.com/2011/dawn-theme/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dawn-theme</link>
		<comments>http://www.recadesign.com/2011/dawn-theme/#comments</comments>
		<pubDate>Wed, 18 May 2011 05:20:19 +0000</pubDate>
		<dc:creator>Reca Design</dc:creator>
				<category><![CDATA[Web design]]></category>
		<category><![CDATA[webfolio]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://recadesign.com/?p=344</guid>
		<description><![CDATA[<a href="http://recadesign.com/wp-content/uploads/2011/05/recadesign-full.jpg"><img src="http://recadesign.com/wp-content/uploads/2011/05/RECADESIGN-theme.jpg" alt="" title="recadesign.com" width="267" height="235" class="alignleft size-full wp-image-343" /></a>

<p>
Website design
XHTML and CSS production
PHP coding and WordPress integration
Plugin customization</p>

<p>&#160;&#160;</p>
<p>&#160;&#160;</p> <a href="http://www.recadesign.com/2011/dawn-theme/"><span class="meta-nav">Read more</span></a><div class="tentblogger-rss-footer"><hr /><p>You just finished reading <a href="http://recadesign.com/?p=344">Recadesign "Dawn" theme</a>!  Consider leaving a comment!</p><p></p></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://recadesign.com/wp-content/uploads/2011/05/recadesign-full.jpg"><img src="http://recadesign.com/wp-content/uploads/2011/05/RECADESIGN-theme.jpg" alt="" title="DAWN theme" width="267" height="235" class="alignleft size-full wp-image-343" /></a></p>
<p><strong>“Dawn”</strong> is a 2011 WordPress theme, designed for RECADESIGN website. Is complex highly customizable theme with lots of custom widgetized areas and multiple page templates with various content layouts depending on page profile. The home page template content section has three widgetized areas giving high flexibility of content display options. The portofolio page template has a primary post area for recent projects using maximum width of the content area and a second list style content area for compact post display. The blog page template uses a normal blog layout. The footer has  three widgetized areas showing whatever you like.</p>
<p>&nbsp;&nbsp;</p>
<div class="tentblogger-rss-footer"><hr /><p>You just finished reading <a href="http://recadesign.com/?p=344">Recadesign "Dawn" theme</a>!  Consider leaving a comment!</p><p></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.recadesign.com/2011/dawn-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recadesign &#8220;Manto&#8221; theme</title>
		<link>http://www.recadesign.com/2011/manto-theme/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=manto-theme</link>
		<comments>http://www.recadesign.com/2011/manto-theme/#comments</comments>
		<pubDate>Wed, 18 May 2011 03:49:54 +0000</pubDate>
		<dc:creator>Reca Design</dc:creator>
				<category><![CDATA[Web design]]></category>
		<category><![CDATA[webfolio]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://recadesign.com/?p=339</guid>
		<description><![CDATA[<a href="http://recadesign.com/wp-content/uploads/2011/05/manto-full.jpg"><img src="http://recadesign.com/wp-content/uploads/2011/05/MANTO-theme.jpg" alt="" title="MANTO WordPress Theme" width="267" height="235" class="alignleft size-full wp-image-160" /></a>


<p>
Website design
XHTML and CSS production
PHP coding and WordPress integration
Plugin customization</p>

<a class="redlink" href="http://recadesign.com/custom-themes/manto/" target="_blank" title="MANTO">LIVE PREVIEW</a>
<p>&#160;&#160;</p> <a href="http://www.recadesign.com/2011/manto-theme/"><span class="meta-nav">Read more</span></a><div class="tentblogger-rss-footer"><hr /><p>You just finished reading <a href="http://recadesign.com/?p=339">Recadesign "Manto" theme</a>!  Consider leaving a comment!</p><p></p></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://recadesign.com/wp-content/uploads/2011/05/manto-full.jpg"><img src="http://recadesign.com/wp-content/uploads/2011/05/MANTO-theme.jpg" alt="" title="MANTO WordPress Theme" width="267" height="235" class="alignleft size-full wp-image-160" /></a></p>
<p><strong>&#8220;Manto&#8221;</strong> is a 2011 WordPress theme, designed for small business presentations. Is simple and stylish, customizable and  readable. It has an accordion slider with custom links. Four custom areas showing featured images from different category posts, excelent for quick linking to the business features description. Four widgetized areas in the footer for further flexibility. <strong>&#8220;Manto&#8221;</strong> uses a compact tabbed system to dispaly content for maximum space save and quick access to desired information.</p>
<p><a class="redlink" href="http://recadesign.com/custom-themes/manto/" target="_blank" title="MANTO">LIVE PREVIEW</a></p>
<p>&nbsp;&nbsp;</p>
<div class="tentblogger-rss-footer"><hr /><p>You just finished reading <a href="http://recadesign.com/?p=339">Recadesign "Manto" theme</a>!  Consider leaving a comment!</p><p></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.recadesign.com/2011/manto-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recadesign &#8220;Kleio&#8221; theme</title>
		<link>http://www.recadesign.com/2011/kleio-theme/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=kleio-theme</link>
		<comments>http://www.recadesign.com/2011/kleio-theme/#comments</comments>
		<pubDate>Wed, 18 May 2011 03:48:53 +0000</pubDate>
		<dc:creator>Reca Design</dc:creator>
				<category><![CDATA[Web design]]></category>
		<category><![CDATA[webfolio]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://recadesign.com/?p=334</guid>
		<description><![CDATA[<a href="http://recadesign.com/wp-content/uploads/2011/05/kleio-full.jpg"><img src="http://recadesign.com/wp-content/uploads/2011/05/kleio-theme.jpg" alt="" title="KLEIO WordPress Theme" width="267" height="235" class="alignleft size-full wp-image-170" /></a>


<p>
Website design
XHTML and CSS production
PHP coding and WordPress integration
Plugin customization</p>

<a class="redlink" href="#" title="KLEIO">LIVE PREVIEW</a><span>&#160;&#160;coming soon</span>
<p>&#160;&#160;</p> <a href="http://www.recadesign.com/2011/kleio-theme/"><span class="meta-nav">Read more</span></a><div class="tentblogger-rss-footer"><hr /><p>You just finished reading <a href="http://recadesign.com/?p=334">Recadesign "Kleio" theme</a>!  Consider leaving a comment!</p><p></p></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://recadesign.com/wp-content/uploads/2011/05/kleio-full.jpg"><img src="http://recadesign.com/wp-content/uploads/2011/05/kleio-theme.jpg" alt="" title="KLEIO WordPress Theme" width="267" height="235" class="alignleft size-full wp-image-170" /></a></p>
<p><strong>&#8220;Kleio&#8221;</strong> is a 2011 WordPress theme, a freestyle eye-candy. <strong>&#8220;Kleio&#8217;s&#8221;</strong> purpose is a business product presentation.  <strong>&#8220;Kleio&#8221;</strong> supports three widgetized areas (one in the sidebar and two in the footer). On the homepage are two post areas: one for product description and one for product features. <strong>&#8220;Kleio&#8221;</strong> has two custom menu areas (header and footer).</p>
<p><a class="redlink" href="#" title="KLEIO">LIVE PREVIEW</a><span>&nbsp;&nbsp;coming soon</span></p>
<p>&nbsp;&nbsp;</p>
<div class="tentblogger-rss-footer"><hr /><p>You just finished reading <a href="http://recadesign.com/?p=334">Recadesign "Kleio" theme</a>!  Consider leaving a comment!</p><p></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.recadesign.com/2011/kleio-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

