<?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>Premium BuddyPress Themes and Support - BuddyDress &#187; tutorial</title>
	<atom:link href="http://buddydress.com/tag/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://buddydress.com</link>
	<description>Premium BuddyPress Themes</description>
	<lastBuildDate>Fri, 25 Feb 2011 15:00:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>BuddyPress Colours Tutorial</title>
		<link>http://buddydress.com/2010/07/buddypress-colours-tutorial/</link>
		<comments>http://buddydress.com/2010/07/buddypress-colours-tutorial/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 19:27:04 +0000</pubDate>
		<dc:creator>tammie</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[BuddyPress Colours]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://buddydress.com/?p=933</guid>
		<description><![CDATA[Today we&#8217;re going to have a look at our great free theme BuddyPress Colours and see how you can easily create your own colour scheme. We hope you enjoy the tutorial and look forward to seeing your colour schemes. You can get BuddyPress Colours right here now.]]></description>
			<content:encoded><![CDATA[<p>Today we&#8217;re going to have a look at our great free theme <a href="http://wordpress.org/extend/themes/buddypress-colours">BuddyPress Colours</a> and see how you can easily create your own colour scheme.</p>
<p>We hope you enjoy the tutorial and look forward to seeing your colour schemes.</p>
<p><!-- VZAAR START --></p>
<div class="vzaar_media_player">
      <object id="video" width="600" height="375" type="application/x-shockwave-flash" data="http://view.vzaar.com/571558.flashplayer"><param name="movie" value="http://view.vzaar.com/571558.flashplayer"><param name="allowScriptAccess" value="always"><param name="allowFullScreen" value="true"><param name="wmode" value="transparent"><param name="flashvars" value="border=none"><embed src="http://view.vzaar.com/571558.flashplayer" type="application/x-shockwave-flash" wmode="transparent" width="600" height="375" allowScriptAccess="always" allowFullScreen="true" flashvars="border=none"></embed><video width="1280" height="800" src="http://view.vzaar.com/571558.mobile" poster="http://view.vzaar.com/571558.image" controls onclick="this.play();"></video></object>
</div>
<p><!-- VZAAR END --></p>
<p>You can get BuddyPress Colours <a href="http://wordpress.org/extend/themes/buddypress-colours">right here now</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://buddydress.com/2010/07/buddypress-colours-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firebug: installing, discovering and using &#8211; the tutorial</title>
		<link>http://buddydress.com/2010/06/firebug-installing-discovering-and-using-the-tutorial/</link>
		<comments>http://buddydress.com/2010/06/firebug-installing-discovering-and-using-the-tutorial/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 16:34:18 +0000</pubDate>
		<dc:creator>tammie</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://buddydress.com/?p=848</guid>
		<description><![CDATA[Today we&#8217;re going to take a look at firebug and how using parent and child themes you can customise your css by finding the class in firebug.  What is Firebug?  Well, it&#8217;s a development add-on for the firefox browser primarily but goes far beyond that and is now available on other browsers.  It&#8217;s our number [...]]]></description>
			<content:encoded><![CDATA[<p>Today we&#8217;re going to take a look at firebug and how using parent and child themes you can customise your css by finding the class in firebug.  What is Firebug?  Well, it&#8217;s a development add-on for the firefox browser primarily but goes far beyond that and is now available on other browsers.  It&#8217;s our number one tool that anyone should consider when starting to explore theme customisation.</p>
<p>This week the video tutorial is the main feature and after will be some useful links to support the tutorial.  We hope you enjoy this slightly different tutorial and after the video are the links to get firebug.</p>
<p><!-- VZAAR START --></p>
<div class="vzaar_media_player">
      <object id="video" width="600" height="375" type="application/x-shockwave-flash" data="http://view.vzaar.com/572380.flashplayer"><param name="movie" value="http://view.vzaar.com/572380.flashplayer"><param name="allowScriptAccess" value="always"><param name="allowFullScreen" value="true"><param name="wmode" value="transparent"><param name="flashvars" value="border=none"><embed src="http://view.vzaar.com/572380.flashplayer" type="application/x-shockwave-flash" wmode="transparent" width="600" height="375" allowScriptAccess="always" allowFullScreen="true" flashvars="border=none"></embed><video width="1280" height="802" src="http://view.vzaar.com/572380.mobile" poster="http://view.vzaar.com/572380.image" controls onclick="this.play();"></video></object>
</div>
<p><!-- VZAAR END --></p>
<h4>Get firebug</h4>
<p>You can get firebug <a href="http://getfirebug.com/">right here</a>.</p>
<p>We hope you enjoyed this tutorial and learn to use firebug to start exploring themes more should you want to delve into customisation more.  As always if you&#8217;ve got any questions just drop us a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://buddydress.com/2010/06/firebug-installing-discovering-and-using-the-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logged in and logged out content tutorial</title>
		<link>http://buddydress.com/2010/05/logged-in-and-logged-out-content-tutorial/</link>
		<comments>http://buddydress.com/2010/05/logged-in-and-logged-out-content-tutorial/#comments</comments>
		<pubDate>Wed, 26 May 2010 14:25:06 +0000</pubDate>
		<dc:creator>tammie</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[buddypress]]></category>
		<category><![CDATA[logged in]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[users]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://buddydress.com/?p=829</guid>
		<description><![CDATA[This week&#8217;s tutorial is all about showing or hiding content depending if a user is logged in or not.  A few weeks ago in the forums The iconBLock Ltd was tweaking the Social theme to not show some navigation depending on if a user was logged in or not.  As a result of this the [...]]]></description>
			<content:encoded><![CDATA[<p>This week&#8217;s tutorial is all about showing or hiding content depending if a user is logged in or not.  A few weeks ago in the forums <a href="http://iconblock.com">The iconBLock Ltd</a> was tweaking the <a href="http://buddydress.com/project/buddypress-social">Social theme</a> to not show some navigation depending on if a user was logged in or not.  As a result of this the following tutorial was born to show people how to do it for themselves.</p>
<p>We&#8217;re going to dive right in with the video and after will be the written tutorial with code.﻿</p>
<p><!-- VZAAR START --></p>
<div class="vzaar_media_player">
      <object id="video" width="600" height="375" type="application/x-shockwave-flash" data="http://view.vzaar.com/572458.flashplayer"><param name="movie" value="http://view.vzaar.com/572458.flashplayer"><param name="allowScriptAccess" value="always"><param name="allowFullScreen" value="true"><param name="wmode" value="transparent"><param name="flashvars" value="border=none"><embed src="http://view.vzaar.com/572458.flashplayer" type="application/x-shockwave-flash" wmode="transparent" width="600" height="375" allowScriptAccess="always" allowFullScreen="true" flashvars="border=none"></embed><video width="1280" height="802" src="http://view.vzaar.com/572458.mobile" poster="http://view.vzaar.com/572458.image" controls onclick="this.play();"></video></object>
</div>
<p><!-- VZAAR END --></p>
<p>The important function we&#8217;re going to be using that will be core to all of the examples is the function:</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> if </span><span class="phpOperator">(</span><span class="htmlText"> is_user_logged_in</span><span class="phpOperator">(</span><span class="phpOperator">)</span> <span class="phpOperator">)</span> <span class="phpOperator">:</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> else </span><span class="phpOperator">:</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> endif<span class="phpText">;</span></span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>Using this simple function and either the if / else or just an if we can hide or show content depending on whether a user is logged in or not.  It&#8217;s that easy.</p>
<h4>Showing different widgets depending on if signed in or not</h4>
<p>First of all we&#8217;re going to use the existing code so we want open the file <strong>sidebar.php </strong>then we want to find the first if statement at line 8:</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> if </span><span class="phpOperator">(</span><span class="htmlText"> is_user_logged_in</span><span class="phpOperator">(</span><span class="phpOperator">)</span> <span class="phpOperator">)</span> <span class="phpOperator">:</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>Add a widget area after so that becomes:</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> if </span><span class="phpOperator">(</span><span class="htmlText"> is_user_logged_in</span><span class="phpOperator">(</span><span class="phpOperator">)</span> <span class="phpOperator">)</span> <span class="phpOperator">:</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> if </span><span class="phpOperator">(</span> <span class="phpOperator">!</span><span class="phpFunction"><span class="phpFunctionKeyword">function</span>_exists</span><span class="phpOperator">(</span><span class="phpString">'dynamic_sidebar'</span><span class="phpOperator">)</span> <span class="phpOperator">|</span><span class="phpOperator">|</span> <span class="phpOperator">!</span><span class="htmlText">dynamic_sidebar</span><span class="phpOperator">(</span><span class="phpString">'Sidebar-Loggedin'</span><span class="phpOperator">)</span> <span class="phpOperator">)</span> <span class="phpOperator">:</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> endif<span class="phpText">;</span></span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>Next at the else statement at line 31 find:</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> else </span><span class="phpOperator">:</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>Add a widget area to that for the logged out content so it becomes:</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> else </span><span class="phpOperator">:</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> if </span><span class="phpOperator">(</span> <span class="phpOperator">!</span><span class="phpFunction"><span class="phpFunctionKeyword">function</span>_exists</span><span class="phpOperator">(</span><span class="phpString">'dynamic_sidebar'</span><span class="phpOperator">)</span> <span class="phpOperator">|</span><span class="phpOperator">|</span> <span class="phpOperator">!</span><span class="htmlText">dynamic_sidebar</span><span class="phpOperator">(</span><span class="phpString">'Sidebar-Loggedout'</span><span class="phpOperator">)</span> <span class="phpOperator">)</span> <span class="phpOperator">:</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> endif<span class="phpText">;</span></span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>Save that file and lets move onto <strong>functions.php</strong>.</p>
<p>After line 16 where the register_sidebar is add the following:</p>
<pre class="php">
register_sidebars<span class="phpOperator">(</span> <span class="phpNumber">1</span>,
<span class="phpFunction">array</span><span class="phpOperator">(</span>
<span class="phpString">'name'</span> <span class="phpOperator"><span class="phpOperator">=</span><span class="phpOperator">&gt;</span></span> <span class="phpString">'Sidebar-Loggedin'</span>,
<span class="phpString">'before_widget'</span> <span class="phpOperator"><span class="phpOperator">=</span><span class="phpOperator">&gt;</span></span> <span class="phpString">'<span class="phpOperator">&lt;</span>div id<span class="phpOperator">=</span><span class="phpString">"%<span class="phpNumber">1</span>$s"</span><span class="phpOperator">&gt;</span>'</span>,
<span class="phpString">'after_widget'</span> <span class="phpOperator"><span class="phpOperator">=</span><span class="phpOperator">&gt;</span></span> <span class="phpString">'<span class="phpOperator">&lt;</span>/div<span class="phpOperator">&gt;</span>'</span>,
<span class="phpString">'before_title'</span> <span class="phpOperator"><span class="phpOperator">=</span><span class="phpOperator">&gt;</span></span> <span class="phpString">'<span class="phpOperator">&lt;</span>h3<span class="phpOperator">&gt;</span>'</span>,
<span class="phpString">'after_title'</span> <span class="phpOperator"><span class="phpOperator">=</span><span class="phpOperator">&gt;</span></span> <span class="phpString">'<span class="phpOperator">&lt;</span>/h3<span class="phpOperator">&gt;</span>'</span>
<span class="phpOperator">)</span>
<span class="phpOperator">)</span><span class="phpText">;</span>
register_sidebars<span class="phpOperator">(</span> <span class="phpNumber">1</span>,
<span class="phpFunction">array</span><span class="phpOperator">(</span>
<span class="phpString">'name'</span> <span class="phpOperator"><span class="phpOperator">=</span><span class="phpOperator">&gt;</span></span> <span class="phpString">'Sidebar-Loggedout'</span>,
<span class="phpString">'before_widget'</span> <span class="phpOperator"><span class="phpOperator">=</span><span class="phpOperator">&gt;</span></span> <span class="phpString">'<span class="phpOperator">&lt;</span>div id<span class="phpOperator">=</span><span class="phpString">"%<span class="phpNumber">1</span>$s"</span><span class="phpOperator">&gt;</span>'</span>,
<span class="phpString">'after_widget'</span> <span class="phpOperator"><span class="phpOperator">=</span><span class="phpOperator">&gt;</span></span> <span class="phpString">'<span class="phpOperator">&lt;</span>/div<span class="phpOperator">&gt;</span>'</span>,
<span class="phpString">'before_title'</span> <span class="phpOperator"><span class="phpOperator">=</span><span class="phpOperator">&gt;</span></span> <span class="phpString">'<span class="phpOperator">&lt;</span>h3<span class="phpOperator">&gt;</span>'</span>,
<span class="phpString">'after_title'</span> <span class="phpOperator"><span class="phpOperator">=</span><span class="phpOperator">&gt;</span></span> <span class="phpString">'<span class="phpOperator">&lt;</span>/h3<span class="phpOperator">&gt;</span>'</span>
<span class="phpOperator">)</span>
<span class="phpOperator">)</span><span class="phpText">;</span>
</pre>
<p>Save that file and then go into <strong>appearance &gt; widgets</strong> and you can add some widgets to the loggedin and loggedout widget areas.</p>
<p>There you go that is how you can show different widgets depending on if a user is logged in or not.</p>
<h4>Showing a message to logged in users only</h4>
<p>Finally we&#8217;re going to add a message that will only show to our logged in users.  First, open up<strong> header.php</strong> and find the following line 44:</p>
<pre class="php">
<span class="htmlOtherTag">&lt;h1 id=<span class="htmlAttributeValue">&quot;logo&quot;</span>&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span> <span class="phpFunction">echo</span><span class="htmlText"> site_url</span><span class="phpOperator">(</span><span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>&quot;</span> title=<span class="htmlAttributeValue">&quot;<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> _e</span><span class="phpOperator">(</span> <span class="phpString">'Home'</span>, <span class="phpString">'buddypress'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>&quot;</span>&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> bp_site_name</span><span class="phpOperator">(</span><span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;/h1&gt;</span>
</pre>
<p>After that, lets add the phrase we want to show to logged in users only and use the if user logged in check so we have the following:</p>
<pre class="php">
<span class="htmlOtherTag">&lt;h1 id=<span class="htmlAttributeValue">&quot;logo&quot;</span>&gt;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span> <span class="phpFunction">echo</span><span class="htmlText"> site_url</span><span class="phpOperator">(</span><span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>&quot;</span> title=<span class="htmlAttributeValue">&quot;<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> _e</span><span class="phpOperator">(</span> <span class="phpString">'Home'</span>, <span class="phpString">'buddypress'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>&quot;</span>&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> bp_site_name</span><span class="phpOperator">(</span><span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlAnchorTag">&lt;/a&gt;</span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> if </span><span class="phpOperator">(</span><span class="htmlText"> is_user_logged_in</span><span class="phpOperator">(</span><span class="phpOperator">)</span> <span class="phpOperator">)</span> <span class="phpOperator">:</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="htmlSpecialChar">&amp;nbsp;</span>Welcome member
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> endif<span class="phpText">;</span></span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="htmlOtherTag">&lt;/h1&gt;</span>
</pre>
<p>Save the file and refresh.  There you go, you&#8217;ve now added a logged in message, log out and you can see the message for logged out users.</p>
<p>As you can see with this simple check you can easily show or hide content it&#8217;s up to you what you do with it.</p>
<p>Here are some great links around these topics if you wish to read a little deeper:</p>
<p><a href="http://codex.wordpress.org/Function_Reference/register_sidebars">http://codex.wordpress.org/Function_Reference/register_sidebars</a></p>
<p><a href="http://codex.wordpress.org/Function_Reference/register_sidebar">http://codex.wordpress.org/Function_Reference/register_sidebar</a></p>
<h4>Power tip</h4>
<p>Want to do a quick not logged in check?  How about this:</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> if </span><span class="phpOperator">(</span><span class="phpOperator">!</span><span class="htmlText">is_user_logged_in</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpOperator">)</span> <span class="phpOperator">{</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
// code here
}
</pre>
<p>We hope you enjoyed this tutorial and let us know if you&#8217;d like any other topic covered.</p>
]]></content:encoded>
			<wfw:commentRss>http://buddydress.com/2010/05/logged-in-and-logged-out-content-tutorial/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Parent and child themes explored</title>
		<link>http://buddydress.com/2010/05/parent-and-child-themes-explored/</link>
		<comments>http://buddydress.com/2010/05/parent-and-child-themes-explored/#comments</comments>
		<pubDate>Wed, 19 May 2010 13:54:06 +0000</pubDate>
		<dc:creator>tammie</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[parent and child]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://buddydress.com/?p=809</guid>
		<description><![CDATA[Today we&#8217;re going to look at parent and child themes.  To learn a bit more what we are going to do is create a child theme for the default BuddyPress 1.2 theme. We&#8217;ve got a video tutorial and after that the written version with the source files and code you&#8217;ll need to get you started [...]]]></description>
			<content:encoded><![CDATA[<p>Today we&#8217;re going to look at parent and child themes.  To learn a bit more what we are going to do is create a child theme for the default BuddyPress 1.2 theme.  </p>
<p>We&#8217;ve got a video tutorial and after that the written version with the source files and code you&#8217;ll need to get you started with child themes.  Let&#8217;s dive straight in with the video.</p>
<p><!-- VZAAR START --></p>
<div class="vzaar_media_player">
      <object id="video" width="600" height="375" type="application/x-shockwave-flash" data="http://view.vzaar.com/572491.flashplayer"><param name="movie" value="http://view.vzaar.com/572491.flashplayer"><param name="allowScriptAccess" value="always"><param name="allowFullScreen" value="true"><param name="wmode" value="transparent"><param name="flashvars" value="border=none"><embed src="http://view.vzaar.com/572491.flashplayer" type="application/x-shockwave-flash" wmode="transparent" width="600" height="375" allowScriptAccess="always" allowFullScreen="true" flashvars="border=none"></embed><video width="1280" height="802" src="http://view.vzaar.com/572491.mobile" poster="http://view.vzaar.com/572491.image" controls onclick="this.play();"></video></object>
</div>
<p><!-- VZAAR END --></p>
<p>So, what are parent and child themes?  If you think of it in the sense of inheritance.  A child theme gets everything a parent theme has however it can also have it&#8217;s own styling, functions and formats that have nothing to do with the parent.</p>
<p>Why would you want to use them?  Parent and child themes are a great way of ensuring your changes do not get overwritten on theme updates.  They are also a great way of creating new versions based on the same core.  When you update your theme you do not update your child theme therefore you can make sure your changes do not get overwritten.</p>
<p>Lets take a look at a basic child theme format you could use.</p>
<h4>Delving into child themes</h4>
<p><a href="http://buddydress.com/wp-content/uploads//2010/05/01.jpg"><img class="alignnone size-full wp-image-811" title="01" src="http://buddydress.com/wp-content/uploads//2010/05/01.jpg" alt="" width="600" height="200" /></a><br />
There are a few key features.</p>
<p><strong>1.  You must reference the template you are using as the parent in the child style.css:</strong></p>
<pre class="css">Template: bp-default</pre>
<p><strong>2.  You must inherit the parent theme&#8217;s css files along with the template files so make sure you add the css to do that:</strong></p>
<pre class="css">* Inherit the default theme styles */
<span class="cssImport">@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );</span>
<span class="cssComment">/* Inherit the default theme adminbar styles */</span>
<span class="cssImport">@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css );</span></pre>
<p><strong>3.  You must keep any file structure used in the parent theme</strong></p>
<p><strong>4.  You should have a screenshot.png to show what the theme looks like</strong></p>
<p><strong>5.  Your style.css must have the buddypress tag to ensure it&#8217;s recognised as a buddypress theme:</strong></p>
<pre class="css">Tags: buddypress</pre>
<p><strong>4.  Here is what an example css file could look like for a child theme. </strong></p>
<p>It can just be a CSS file or it can be more files but the minimum is the CSS file.  You could add the styles you want to use in this file but it&#8217;s cleaner to link one in for instance here we&#8217;re going to keep the structure the default theme uses and have a directory called <strong>_inc/css/</strong> and put all our css in there under a file called child.css.</p>
<pre class="css">
<span class="cssComment">/*
Theme Name: BuddyPress Child
Theme Date: 17/05/2010
Version: 1
Theme URI: http://buddydress.com/
Description: Child theme for the Default BuddyPress 1.2 theme
Author: Buddydress
Author URI: http://www.buddydress.com/
Tags: buddypress, two-column
Template: bp-default
*/</span>
<span class="cssComment">/* Inherit the default theme styles */</span>
<span class="cssImport">@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );</span>
<span class="cssComment">/* Inherit the default theme adminbar styles */</span>
<span class="cssImport">@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css );</span>
<span class="cssComment">/* Child Styles */</span>
<span class="cssImport">@import url( _inc/css/child.css );</span>
</pre>
<p>Now we&#8217;re going to do a few things to show you how to work with a child theme in a couple of small tutorials.</p>
<h4>Adding links to the footer<br />
<a href="http://buddydress.com/wp-content/uploads//2010/05/02.jpg"><img class="alignnone size-full wp-image-818" title="02" src="http://buddydress.com/wp-content/uploads//2010/05/02.jpg" alt="" width="600" height="200" /></a></h4>
<p>First up create a file called footer.php</p>
<p>In the file copy the contents from the parent theme&#8217;s footer.php in this case:</p>
<pre class="php">
<span class="htmlOtherTag">&lt;/div&gt;</span> <span class="htmlComment"><span class="htmlOtherTag">&lt;!-- #container --&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> do_action</span><span class="phpOperator">(</span> <span class="phpString">'bp_after_container'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> do_action</span><span class="phpOperator">(</span> <span class="phpString">'bp_before_footer'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;footer&quot;</span>&gt;</span>
<span class="htmlOtherTag">&lt;p&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span> <span class="phpFunction">printf</span><span class="phpOperator">(</span><span class="htmlText"> __</span><span class="phpOperator">(</span> <span class="phpString">'%s is proudly powered by <span class="phpOperator">&lt;</span>a href=<span class="phpString">"http<span class="phpOperator">:</span><span class="phpComment">//wordpress<span class="phpOperator">.</span>org"</span></span><span class="phpOperator">&gt;</span><span class="htmlText">WordPress</span><span class="phpOperator">&lt;</span>/a<span class="phpOperator">&gt;</span><span class="htmlText"> and </span><span class="phpOperator">&lt;</span>a href=<span class="phpString">"http<span class="phpOperator">:</span><span class="phpComment">//buddypress<span class="phpOperator">.</span>org"</span></span><span class="phpOperator">&gt;</span><span class="htmlText">BuddyPress</span><span class="phpOperator">&lt;</span>/a<span class="phpOperator">&gt;</span>'</span>, <span class="phpString">'buddypress'</span> <span class="phpOperator">)</span>, bloginfo<span class="phpOperator">(</span><span class="phpString">'name'</span><span class="phpOperator">)</span> <span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlOtherTag">&lt;/p&gt;</span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> do_action</span><span class="phpOperator">(</span> <span class="phpString">'bp_footer'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="htmlOtherTag">&lt;/div&gt;</span><span class="htmlComment"><span class="htmlOtherTag">&lt;!-- #footer --&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> do_action</span><span class="phpOperator">(</span> <span class="phpString">'bp_after_footer'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> wp_footer</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="htmlOtherTag">&lt;/body&gt;</span>
<span class="htmlOtherTag">&lt;/html&gt;</span>
</pre>
<p>Next up lets replace the code in the bit labeled:</p>
<pre class="php">
<span class="htmlOtherTag">&lt;p&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span> <span class="phpFunction">printf</span><span class="phpOperator">(</span><span class="htmlText"> __</span><span class="phpOperator">(</span> <span class="phpString">'%s is proudly powered by <span class="phpOperator">&lt;</span>a href=<span class="phpString">"http<span class="phpOperator">:</span><span class="phpComment">//wordpress<span class="phpOperator">.</span>org"</span></span><span class="phpOperator">&gt;</span><span class="htmlText">WordPress</span><span class="phpOperator">&lt;</span>/a<span class="phpOperator">&gt;</span><span class="htmlText"> and </span><span class="phpOperator">&lt;</span>a href=<span class="phpString">"http<span class="phpOperator">:</span><span class="phpComment">//buddypress<span class="phpOperator">.</span>org"</span></span><span class="phpOperator">&gt;</span><span class="htmlText">BuddyPress</span><span class="phpOperator">&lt;</span>/a<span class="phpOperator">&gt;</span>'</span>, <span class="phpString">'buddypress'</span> <span class="phpOperator">)</span>, bloginfo<span class="phpOperator">(</span><span class="phpString">'name'</span><span class="phpOperator">)</span> <span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlOtherTag">&lt;/p&gt;</span>
</pre>
<p>We&#8217;re going to add a link to this site and also make a &#8216;back to top link&#8217; so lets do that now and here&#8217;s the code you should have (note the changes):</p>
<pre class="php">
<span class="htmlOtherTag">&lt;/div&gt;</span> <span class="htmlComment"><span class="htmlOtherTag">&lt;!-- #container --&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> do_action</span><span class="phpOperator">(</span> <span class="phpString">'bp_after_container'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> do_action</span><span class="phpOperator">(</span> <span class="phpString">'bp_before_footer'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="htmlOtherTag">&lt;div id=<span class="htmlAttributeValue">&quot;footer&quot;</span>&gt;</span>
<span class="htmlOtherTag">&lt;p&gt;</span>       <span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://buddydress.com&quot;</span> title=<span class="htmlAttributeValue">&quot;<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> _e</span><span class="phpOperator">(</span> <span class="phpString">'My child theme by BuddyDress'</span>, <span class="phpString">'buddypress'</span> <span class="phpOperator">)</span><span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>&quot;</span> &gt;<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> _e</span><span class="phpOperator">(</span> <span class="phpString">'BuddyDress'</span>, <span class="phpString">'buddypress'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlSpecialChar">&amp;nbsp;</span><span class="htmlSpecialChar">&amp;nbsp;</span>|<span class="htmlSpecialChar">&amp;nbsp;</span><span class="htmlSpecialChar">&amp;nbsp;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span> <span class="phpFunction">echo</span><span class="htmlText"> get_settings</span><span class="phpOperator">(</span><span class="phpString">'home'</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span></span>&quot;</span>&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> _e</span><span class="phpOperator">(</span> <span class="phpString">'Copyright'</span>, <span class="phpString">'buddypress'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span> &copy;<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span> <span class="phpFunction">echo</span> <span class="phpFunction">gmdate</span><span class="phpOperator">(</span><span class="htmlText">__</span><span class="phpOperator">(</span><span class="phpString">'Y'</span><span class="phpOperator">)</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span> <span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> bloginfo</span><span class="phpOperator">(</span><span class="phpString">'name'</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlSpecialChar">&amp;nbsp;</span><span class="htmlSpecialChar">&amp;nbsp;</span>|<span class="htmlSpecialChar">&amp;nbsp;</span><span class="htmlSpecialChar">&amp;nbsp;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;#header&quot;</span>&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> _e</span><span class="phpOperator">(</span><span class="phpString">'Go back to top &#038;uarr<span class="phpText">;</span>'</span>, <span class="phpString">'buddypress'</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;/p&gt;</span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> do_action</span><span class="phpOperator">(</span> <span class="phpString">'bp_footer'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="htmlOtherTag">&lt;/div&gt;</span><span class="htmlComment"><span class="htmlOtherTag">&lt;!-- #footer --&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> do_action</span><span class="phpOperator">(</span> <span class="phpString">'bp_after_footer'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> wp_footer</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
<span class="htmlOtherTag">&lt;/body&gt;</span>
<span class="htmlOtherTag">&lt;/html&gt;</span>
</pre>
<p>For reference the new bit of code is this:</p>
<pre class="php">
<span class="htmlOtherTag">&lt;p&gt;</span>       <span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;http://buddydress.com&quot;</span> title=<span class="htmlAttributeValue">&quot;<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> _e</span><span class="phpOperator">(</span> <span class="phpString">'My child theme by BuddyDress'</span>, <span class="phpString">'buddypress'</span> <span class="phpOperator">)</span><span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>&quot;</span> &gt;<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> _e</span><span class="phpOperator">(</span> <span class="phpString">'BuddyDress'</span>, <span class="phpString">'buddypress'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlSpecialChar">&amp;nbsp;</span><span class="htmlSpecialChar">&amp;nbsp;</span>|<span class="htmlSpecialChar">&amp;nbsp;</span><span class="htmlSpecialChar">&amp;nbsp;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span> <span class="phpFunction">echo</span><span class="htmlText"> get_settings</span><span class="phpOperator">(</span><span class="phpString">'home'</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span></span>&quot;</span>&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> _e</span><span class="phpOperator">(</span> <span class="phpString">'Copyright'</span>, <span class="phpString">'buddypress'</span> <span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span> &copy;<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span> <span class="phpFunction">echo</span> <span class="phpFunction">gmdate</span><span class="phpOperator">(</span><span class="htmlText">__</span><span class="phpOperator">(</span><span class="phpString">'Y'</span><span class="phpOperator">)</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span> <span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> bloginfo</span><span class="phpOperator">(</span><span class="phpString">'name'</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlSpecialChar">&amp;nbsp;</span><span class="htmlSpecialChar">&amp;nbsp;</span>|<span class="htmlSpecialChar">&amp;nbsp;</span><span class="htmlSpecialChar">&amp;nbsp;</span><span class="htmlAnchorTag">&lt;a href=<span class="htmlAttributeValue">&quot;#header&quot;</span>&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> _e</span><span class="phpOperator">(</span><span class="phpString">'Go back to top &#038;uarr<span class="phpText">;</span>'</span>, <span class="phpString">'buddypress'</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlAnchorTag">&lt;/a&gt;</span><span class="htmlOtherTag">&lt;/p&gt;</span>
</pre>
<p>Save that file as footer.php making sure it&#8217;s at the root of your child theme.</p>
<p>Refresh and you will now see your links set up, you can click the &#8216;back to top&#8217; and you get taken to the header &#8211; neat isn&#8217;t it.</p>
<h4>Changing the background colour of the theme using child CSS<br />
<a href="http://buddydress.com/wp-content/uploads//2010/05/03.jpg"><img class="alignnone size-full wp-image-819" title="03" src="http://buddydress.com/wp-content/uploads//2010/05/03.jpg" alt="" width="600" height="70" /></a></h4>
<p>For this example we&#8217;re going to create a file and the folders if you do not have them of _inc/css/ under your child theme.</p>
<p>In this file we&#8217;re going to copy the body style that is used in the default theme which is this:</p>
<pre class="css"><span class="cssSelector">body {</span>
<span class="cssProperty">background</span><span class="cssRest">:</span><span class="cssValue"> #eaeaea url( ../images/background.gif ) top left repeat-x</span><span class="cssRest">;</span>
<span class="cssProperty">font-size</span><span class="cssRest">:</span><span class="cssValue"> 12px</span><span class="cssRest">;</span>
<span class="cssProperty">font-family</span><span class="cssRest">:</span><span class="cssValue"> Arial, Tahoma, Verdana, sans-serif</span><span class="cssRest">;</span>
<span class="cssProperty">line-height</span><span class="cssRest">:</span><span class="cssValue"> 170%</span><span class="cssRest">;</span>
<span class="cssProperty">color</span><span class="cssRest">:</span><span class="cssValue"> #555</span><span class="cssRest">;</span>
<span class="cssSelector">}</span></pre>
<p>We don&#8217;t want to have the font size, family and anything apart from the background style so lets delete that and give it a new colour.  The new CSS would be:</p>
<pre class="css"><span class="cssSelector">body {</span>
<span class="cssProperty">background</span><span class="cssRest">:</span><span class="cssValue"> #111111</span><span class="cssRest">;</span>
<span class="cssSelector">}</span></pre>
<p>Save that as child.css and refresh.  There you go, the background is now black.</p>
<h4>Get the files</h4>
<p>We hope you enjoyed these tutorials and this basic exploration of parent and child themes.  You can get the source files for the tutorial <a href="http://buddydress.com/wp-content/uploads//2010/05/bp-child.zip">right here</a> to get you off to a flying start.</p>
<p>As always if there is a tutorial you&#8217;d like to see us cover here at BuddyDress or there is something you&#8217;d like us to feature on this blog just <a href="http://buddydress.com/contact/">drop us a line</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://buddydress.com/2010/05/parent-and-child-themes-explored/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Custom header tutorial: Adding an image and changing the size</title>
		<link>http://buddydress.com/2010/04/custom-header-tutorial-adding-an-image-and-changing-the-size/</link>
		<comments>http://buddydress.com/2010/04/custom-header-tutorial-adding-an-image-and-changing-the-size/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 14:00:58 +0000</pubDate>
		<dc:creator>tammie</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[custom header]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://buddydress.com/?p=663</guid>
		<description><![CDATA[Many themes have the in-built ability to upload your own custom header. In this tutorial we are going to go through how to add your own, customise the header to make it taller and change your text colour. For this tutorial we are using the Default BuddyPress 1.2 theme. Tutorial video: You can download or [...]]]></description>
			<content:encoded><![CDATA[<p>Many themes have the in-built ability to upload your own custom header.  In this tutorial we are going to go through how to add your own, customise the header to make it taller and change your text colour.  For this tutorial we are using the Default BuddyPress 1.2 theme.</p>
<h4>Tutorial video:</h4>
<p><!-- VZAAR START --></p>
<div class="vzaar_media_player">
      <object id="video" width="600" height="375" type="application/x-shockwave-flash" data="http://view.vzaar.com/571519.flashplayer"><param name="movie" value="http://view.vzaar.com/571519.flashplayer"><param name="allowScriptAccess" value="always"><param name="allowFullScreen" value="true"><param name="wmode" value="transparent"><param name="flashvars" value="border=none"><embed src="http://view.vzaar.com/571519.flashplayer" type="application/x-shockwave-flash" wmode="transparent" width="600" height="375" allowScriptAccess="always" allowFullScreen="true" flashvars="border=none"></embed><video width="1280" height="802" src="http://view.vzaar.com/571519.mobile" poster="http://view.vzaar.com/571519.image" controls onclick="this.play();"></video></object>
</div>
<p><!-- VZAAR END --></p>
<p>You can download or view online <a href="http://vimeo.com/11263062">the video here</a> and also check out our <a href="http://vimeo.com/album/215692">tutorial video album here</a>.</p>
<h4>Tutorial:</h4>
<h4>Adding a custom header</h4>
<h4>1. Upload the image</p>
<p><img class="alignnone size-full wp-image-665" title="01" src="http://buddydress.com/wp-content/uploads//2010/04/011.jpg" alt="" width="600" height="200" /></h4>
<p>Go to Appearance and then Custom Header.  Once you are there you will notice it says &#8216;Images of exactly 1250 x 125 pixels will be used as-is&#8217;.  If you have a larger image you will have to crop it to pick the area you are going to use or it will repeat if smaller.  Lets select browse and then your image and then the Upload button.</p>
<h4>2.  Crop the image</h4>
<p>Now you will be face with a screen that if you&#8217;re image is larger than that size is for cropping the image.  Select the area you want for your image then save the image.</p>
<h4>3.  Voila a header</p>
<p><a href="http://buddydress.com/wp-content/uploads//2010/04/01a.jpg"><img class="alignnone size-full wp-image-666" title="01a" src="http://buddydress.com/wp-content/uploads//2010/04/01a.jpg" alt="" width="600" height="200" /></a></h4>
<p>Then you can refresh the front and you&#8217;re custom header is now done.</p>
<h4>4.  Change the text colour</p>
<p><a href="http://buddydress.com/wp-content/uploads//2010/04/021.jpg"><img class="alignnone size-full wp-image-667" title="02" src="http://buddydress.com/wp-content/uploads//2010/04/021.jpg" alt="" width="600" height="200" /></a></h4>
<p>If you want to change your text colour you simply go back to the Custom header screen and you will notice several buttons under the header.  Here you can hide the text to not have a header text, select a text colour, use the original colour and save changes.  Clicking select a text colour brings up a colour picker where you can select the colour then save the changes.  If you want to do further customisation of the header text you will need to enter the CSS files.</p>
<h4>Changing the header size</h4>
<p>Lets expand the concept a little now.  One of the key areas you may want to do is to change the height of your header.</p>
<h4>1. Edit functions.php</p>
<p><img class="alignnone size-full wp-image-668" title="03" src="http://buddydress.com/wp-content/uploads//2010/04/031.jpg" alt="" width="600" height="150" /></h4>
<p>In functions.php you want to go to line 150:</p>
<p><code>define( 'HEADER_IMAGE_HEIGHT', 125 );</code></p>
<p>In this demonstration we&#8217;re changing it to be 300 pixels in height:</p>
<p><code> define( 'HEADER_IMAGE_HEIGHT', 300 );</code></p>
<p>Remember to save your file once you&#8217;ve done the change.</p>
<h4>2. Edit default.css</p>
<p><a href="http://buddydress.com/wp-content/uploads//2010/04/041.jpg"><img class="alignnone size-full wp-image-669" title="04" src="http://buddydress.com/wp-content/uploads//2010/04/041.jpg" alt="" width="600" height="200" /></a></h4>
<p>Under _inc/css/ we&#8217;re going to open up default.css and find line 67:<br />
<code><br />
#header {<br />
position: relative;<br />
color: #fff;<br />
background: url( ../images/default_header.jpg);<br />
-moz-border-radius-bottomleft: 6px;<br />
-webkit-border-bottom-left-radius: 6px;<br />
-moz-border-radius-bottomright: 6px;<br />
-webkit-border-bottom-right-radius: 6px;<br />
margin-bottom: 20px;<br />
height: 100px;<br />
padding-top: 25px;<br />
}</code></p>
<p>We now want to pay attention to line 76:<br />
<code><br />
height: 100px;</code></p>
<p>We are going to have our new header as 300 pixels in height and if you notice we have a line of:</p>
<p><code>padding-top: 25px;</code></p>
<p>So, what we want to do is take 25px from 300px to get 275px and then line 76 becomes:</p>
<p><code>height: 275px;</code></p>
<p>Save your file and then we can move onto uploading a new image.</p>
<h4>3. Upload your new header image</h4>
<p><a href="http://buddydress.com/wp-content/uploads//2010/04/05.jpg"><img class="alignnone size-full wp-image-670" title="05" src="http://buddydress.com/wp-content/uploads//2010/04/05.jpg" alt="" width="600" height="200" /></a></p>
<p>Now we want to check that the new height is showing under the Custom Header section if it is we then want to go into the browse section and get a new file to upload.  We then want to crop and save this image.  Hitting refresh you will see on the front we now have a new header image set up with a new size.  You will probably want to adjust other things in the header once you change the size but this is the basic set up for changing the header size.</p>
<h4>Tip: Remove custom headers in your child theme</h4>
<p>If you want to remove the ability to have custom headers in your child theme you simply add the following line in functions.php for your child or parent theme:</p>
<p><code>define( 'BP_DTHEME_DISABLE_CUSTOM_HEADER', true );</code></p>
<h4>Tip: Want to have a repeating image?</h4>
<p>To get a repeating image just upload an image that is not the full size and it should repeat &#8211; depending on the theme you may have to adjust the css or functions.php call for css relating to the custom header.</p>
<h4>Custom headers are a great way to personalise your theme</h4>
<p>There you have it, you can now upload a custom header image and even change the size of the header for the image.  There are some great resources you may want to check out when looking for header images here are just a few:</p>
<ul>
<li><a href="http://www.stripegenerator.com/">Stripe generator</a></li>
<li><a href="http://www.creatr.cc/backgrounds/">Creatr web 2.0 background</a></li>
<li><a href="http://www.freeimages.co.uk/">Free images.co.uk</a></li>
<li><a href="http://www.istockphoto.com/index.php?view=full">Istock Photo &#8211; not free but inexpensive vector images and photographs</a></li>
<li><a href="http://sxc.hu/">stock.xchng free images</a></li>
<li><a href="http://bgpatterns.com/">Bg Patterns: pattern generator</a></li>
<li><a href="http://www.kollermedia.at/pattern4u/">Kollermedia.at range of backgrounds</a></li>
<li><a href="http://webdesignledger.com/freebies/100-seamless-patterns-great-for-creating-website-backgrounds">Web design ledger: 100 seamless patterns</a></li>
</ul>
<p>We hope you enjoyed this tutorial.  If you wish to see anything as a tutorial on buddydress just comment below or you can ask via the <a href="http://buddydress.com/contact/">contact form</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://buddydress.com/2010/04/custom-header-tutorial-adding-an-image-and-changing-the-size/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Add a widget anywhere in 3 simple steps</title>
		<link>http://buddydress.com/2010/04/add-a-widget-anywhere-in-3-simple-steps/</link>
		<comments>http://buddydress.com/2010/04/add-a-widget-anywhere-in-3-simple-steps/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 14:00:16 +0000</pubDate>
		<dc:creator>tammie</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[buddypress]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://buddydress.com/?p=631</guid>
		<description><![CDATA[Widget areas are not just for sidebars you may want to place them anywhere on your theme.  This tutorial is going to easily show you in 3 simple steps how to add a widget area to anywhere.  For illustration purposes I&#8217;m going to use the default BuddyPress 1.2 theme. We have both a video for [...]]]></description>
			<content:encoded><![CDATA[<p>Widget areas are not just for sidebars you may want to place them anywhere on your theme.  This tutorial is going to easily show you in 3 simple steps how to add a widget area to anywhere.  For illustration purposes I&#8217;m going to use the default BuddyPress 1.2 theme.</p>
<p>We have both a video for this tutorial and below that the steps outlined for you.</p>
<h4>Tutorial video</h4>
<p><!-- VZAAR START --></p>
<div class="vzaar_media_player">
      <object id="video" width="600" height="375" type="application/x-shockwave-flash" data="http://view.vzaar.com/571894.flashplayer"><param name="movie" value="http://view.vzaar.com/571894.flashplayer"><param name="allowScriptAccess" value="always"><param name="allowFullScreen" value="true"><param name="wmode" value="transparent"><param name="flashvars" value="border=none"><embed src="http://view.vzaar.com/571894.flashplayer" type="application/x-shockwave-flash" wmode="transparent" width="600" height="375" allowScriptAccess="always" allowFullScreen="true" flashvars="border=none"></embed><video width="1280" height="802" src="http://view.vzaar.com/571894.mobile" poster="http://view.vzaar.com/571894.image" controls onclick="this.play();"></video></object>
</div>
<p><!-- VZAAR END --></p>
<h4>The tutorial</h4>
<p>First of all you need to decide where you are going to add your widget area.  Some themes will have specific styling depending on where you place the widget along with styling you need to put in your widget declaration in your<strong> functions.php</strong> file.  We&#8217;re going to keep it simple though for this tutorial.  Our new widget area is going to be above the login / logged in user section of the sidebar.</p>
<p><a href="http://buddydress.com/wp-content/uploads//2010/04/01.jpg"><img class="alignnone size-full wp-image-633" title="01" src="http://buddydress.com/wp-content/uploads//2010/04/01.jpg" alt="" width="600" height="200" /></a></p>
<h4>1. Open up file you&#8217;re adding widget area into.</h4>
<p>This first step requires us in this case to open up sidebar.php we&#8217;re going to first locate the section we want to add the code in and for us it is line 5.  Now we&#8217;re going to place the code:</p>
<p><code>&lt;?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar-Demo') ) : ?&gt;<br />
&lt;?php endif; ?&gt;</code></p>
<p><a href="http://buddydress.com/wp-content/uploads//2010/04/uploadfirst.jpg"><img class="alignnone size-full wp-image-634" title="02" src="http://buddydress.com/wp-content/uploads//2010/04/uploadfirst.jpg" alt="" width="600" height="150" /></a></p>
<p>As you can see we&#8217;re calling the sidebar demo here. Save that file.</p>
<h4>2. Add to functions.php</h4>
<p>Open up <strong>functions.php</strong> and find where the sidebars are declared in your theme.  In BuddyPress 1.2 Default it&#8217;s at line 8, once we are there we add from line 16 the following code:</p>
<p><code>register_sidebars( 1,<br />
array(<br />
'name' =&gt; 'Sidebar-Demo',<br />
'before_widget' =&gt; '&lt;div id="%1$s"&gt;',<br />
'after_widget' =&gt; '&lt;/div&gt;',<br />
'before_title' =&gt; '&lt;h3&gt;',<br />
'after_title' =&gt; '&lt;/h3&gt;'<br />
)<br />
);</code></p>
<p><a href="http://buddydress.com/wp-content/uploads//2010/04/6.jpg"><img class="alignnone size-full wp-image-635" title="03" src="http://buddydress.com/wp-content/uploads//2010/04/6.jpg" alt="" width="600" height="200" /></a></p>
<p>You can see we are making sure the same name is used as in Sidebar-Demo and also we use the format already used in the default theme.  Save that file once you&#8217;ve added your code.  You can read more about the functions <a href="http://codex.wordpress.org/Function_Reference/register_sidebars">register_sidebars</a> and <a href="http://codex.wordpress.org/Function_Reference/register_sidebar">register_sidebar</a> at the codex.  In this example we just copy the default BuddyPress code but the rule is register_sidebar for one and register_sidebars for more than one.</p>
<h4>3. Add your widget:</h4>
<p>Go into your admin and <strong>select appearance &gt; widgets</strong> and find in this case Demo and add a widget.  Make sure that&#8217;s set and then refresh your front of the site.  There you go, that&#8217;s how to easily add a widget area to any part of your template.</p>
<p><a href="http://buddydress.com/wp-content/uploads//2010/04/04.jpg"><img class="alignnone size-full wp-image-636" title="04" src="http://buddydress.com/wp-content/uploads//2010/04/04.jpg" alt="" width="600" height="200" /></a></p>
<p>For those that want to go a little beyond this you may want to have a message if no widgets are selected so you could where you place the code in your theme file simply add the following (you would want to style the class textwidget yourself):</p>
<p><code>&lt;?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar-Demo') ) : ?&gt;<br />
&lt;div&gt;<br />
&lt;?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?&gt;<br />
&amp;nbsp;&lt;a href="&lt;?php echo get_option('siteurl') ?&gt;/wp-admin/widgets.php?s=&amp;amp;show=&amp;amp;sidebar=sidebar-demo"&gt;&lt;?php _e( 'Add Widgets', 'buddypress' ) ?&gt;&lt;/a&gt;<br />
&lt;/div&gt;<br />
&lt;?php endif; ?&gt;</code></p>
<p>As you can see with these simple steps it&#8217;s really easy to add a widget area to any part of your theme.  We hope you enjoy this tutorial and if you want to have tutorials on any other subjects just <a href="http://buddydress.com/contact-us/">let us know</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://buddydress.com/2010/04/add-a-widget-anywhere-in-3-simple-steps/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

