<?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; tutorials</title>
	<atom:link href="http://buddydress.com/category/tutorials/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>Business Portfolio Theme Tutorial Video</title>
		<link>http://buddydress.com/2010/07/business-portfolio-theme-tutorial-video/</link>
		<comments>http://buddydress.com/2010/07/business-portfolio-theme-tutorial-video/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 15:13:00 +0000</pubDate>
		<dc:creator>tammie</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[buddypress]]></category>
		<category><![CDATA[BuddyPress theme]]></category>
		<category><![CDATA[Business Portfolio]]></category>
		<category><![CDATA[tutorial video]]></category>
		<category><![CDATA[wordpress 3.0]]></category>

		<guid isPermaLink="false">http://buddydress.com/?p=1021</guid>
		<description><![CDATA[Today we&#8217;ve got a video tutorial all about the Business Portfolio theme that we launched last week. We hope you enjoy it and discover this great theme a bit more through it.]]></description>
			<content:encoded><![CDATA[<p>Today we&#8217;ve got a video tutorial all about the Business Portfolio theme that we launched last week.</p>
<p>We hope you enjoy it and discover this great theme a bit more through it.</p>
<p><object width="610" height="381"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=13516289&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=9c1b29&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=13516289&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=9c1b29&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="610" height="381"></embed></object></p>
<p><a href="http://buddydress.com/project/business-portfolio"><img class="alignnone size-full wp-image-989" title="Download theme right now" src="http://buddydress.com/wp-content/uploads//2010/07/bdtheme.jpg" alt="Download theme right now" width="600" height="40" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://buddydress.com/2010/07/business-portfolio-theme-tutorial-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Business Feature Tutorial Video</title>
		<link>http://buddydress.com/2010/07/business-feature-tutorial-video/</link>
		<comments>http://buddydress.com/2010/07/business-feature-tutorial-video/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 16:35:47 +0000</pubDate>
		<dc:creator>tammie</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[buddypress]]></category>
		<category><![CDATA[business feature]]></category>
		<category><![CDATA[tutorial video]]></category>

		<guid isPermaLink="false">http://buddydress.com/?p=975</guid>
		<description><![CDATA[With our release of Business Feature we&#8217;d like to also release the tutorial video for you today. We hope this video helps you discover this powerful theme. You can download Business Feature right here. Discover Business Feature in our demo here.]]></description>
			<content:encoded><![CDATA[<p>With our <a href="http://buddydress.com/2010/07/introducing-the-business-feature-theme/">release of Business Feature</a> we&#8217;d like to also release the tutorial video for you today.</p>
<p>We hope this video helps you discover this powerful theme.</p>
<p><object width="610" height="381"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=13329416&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=9c1b29&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=13329416&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=9c1b29&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="610" height="381"></embed></object></p>
<p><a href="http://buddydress.com/project/business-feature">You can download Business Feature right here.</a></p>
<p><a href="http://themetastic.com/?wptheme=Business%20Feature">Discover Business Feature in our demo here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://buddydress.com/2010/07/business-feature-tutorial-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Discovering WordPress 3.0 menus tutorial</title>
		<link>http://buddydress.com/2010/06/discovering-wordpress-3-0-menus-tutorial/</link>
		<comments>http://buddydress.com/2010/06/discovering-wordpress-3-0-menus-tutorial/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 21:04:05 +0000</pubDate>
		<dc:creator>tammie</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[menus]]></category>
		<category><![CDATA[video tutorial]]></category>
		<category><![CDATA[wordpress 3.0]]></category>

		<guid isPermaLink="false">http://buddydress.com/?p=906</guid>
		<description><![CDATA[Today we&#8217;re going to take a look at one of the great features of WordPress 3.0 and that is the custom menu system. This is a how to video so lets get straight on with it. Want to use this feature in a theme? We&#8217;ve already updated Product and Daily to use this feature and [...]]]></description>
			<content:encoded><![CDATA[<p>Today we&#8217;re going to take a look at one of the great features of WordPress 3.0 and that is the custom menu system.</p>
<p>This is a how to video so lets get straight on with it.<br />
<!-- 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/572218.flashplayer"><param name="movie" value="http://view.vzaar.com/572218.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/572218.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/572218.mobile" poster="http://view.vzaar.com/572218.image" controls onclick="this.play();"></video></object>
</div>
<p><!-- VZAAR END --></p>
<p>Want to use this feature in a theme?  We&#8217;ve already updated Product and Daily to use this feature and we have plans for further updates coming soon.  <a href="http://buddydress.com/themes/">Check out the themes right here</a>.</p>
<p>Have you got something you want to see a tutorial and video on?  Let us know in the comment form.</p>
]]></content:encoded>
			<wfw:commentRss>http://buddydress.com/2010/06/discovering-wordpress-3-0-menus-tutorial/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Product theme preview video</title>
		<link>http://buddydress.com/2010/06/product-theme-preview-video/</link>
		<comments>http://buddydress.com/2010/06/product-theme-preview-video/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 14:06:26 +0000</pubDate>
		<dc:creator>tammie</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[buddydress]]></category>
		<category><![CDATA[buddypress]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[product theme]]></category>

		<guid isPermaLink="false">http://buddydress.com/?p=890</guid>
		<description><![CDATA[Today we&#8217;ve got a cracking video for you introducing the Product theme for you that we simply had to share instead of a tutorial just this once. We hope you enjoy it and you can download Product right here. We are going to start our tutorials again next week after the updating themes break. We [...]]]></description>
			<content:encoded><![CDATA[<p>Today we&#8217;ve got a cracking video for you introducing the Product theme for you that we simply had to share instead of a tutorial just this once.  </p>
<p>We hope you enjoy it and you can download Product <a href="http://buddydress.com/project/product">right here</a>.</p>
<p><object width="600" height="338"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=12682077&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=9c1b29&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=12682077&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=9c1b29&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="600" height="338"></embed></object></p>
<p>We are going to start our tutorials again next week after the updating themes break.  We should also have some news about things this week for you so keep posted and <a href="http://buddydress.com/feed/">subscribed to us</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://buddydress.com/2010/06/product-theme-preview-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Daily theme tutorial video</title>
		<link>http://buddydress.com/2010/06/daily-theme-tutorial-video/</link>
		<comments>http://buddydress.com/2010/06/daily-theme-tutorial-video/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 13:33:28 +0000</pubDate>
		<dc:creator>tammie</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[buddypress]]></category>
		<category><![CDATA[buddypress daily]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[wordpress 3.0]]></category>

		<guid isPermaLink="false">http://buddydress.com/?p=881</guid>
		<description><![CDATA[With a lot of our themes we provide tutorial videos and Daily is no exception.  This theme has been out a while but with all the updates coming to our themes for WordPress 3.0 we thought it was a good chance to remind you of some of the great features of our themes by showing [...]]]></description>
			<content:encoded><![CDATA[<p>With a lot of our themes we provide tutorial videos and Daily is no exception.  This theme has been out a while but with all the updates coming to our themes for WordPress 3.0 we thought it was a good chance to remind you of some of the great features of our themes by showing you the tutorial video that comes with Daily.  Even if you use our themes these videos may be something you&#8217;ve yet to discover.</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/572026.flashplayer"><param name="movie" value="http://view.vzaar.com/572026.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/572026.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/572026.mobile" poster="http://view.vzaar.com/572026.image" controls onclick="this.play();"></video></object>
</div>
<p><!-- VZAAR END --><br />
We hope you enjoyed this video and as usual you can check out all our themes <a href="http://buddydress.com/themes/">right here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://buddydress.com/2010/06/daily-theme-tutorial-video/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Product theme tutorial</title>
		<link>http://buddydress.com/2010/06/product-theme-tutorial/</link>
		<comments>http://buddydress.com/2010/06/product-theme-tutorial/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 19:31:16 +0000</pubDate>
		<dc:creator>tammie</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[buddypress]]></category>
		<category><![CDATA[product]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://buddydress.com/?p=865</guid>
		<description><![CDATA[This week&#8217;s tutorial is going to be a little bit different, we&#8217;re going to take a look at our latest theme Product. Let&#8217;s get on with the tutorial then and discover this marketing and sales wonder of a theme. Like what you see?  You can get the theme right here or view the demo here.]]></description>
			<content:encoded><![CDATA[<p>This week&#8217;s tutorial is going to be a little bit different, we&#8217;re going to take a look at our latest theme <a href="http://buddydress.com/project/product">Product</a>.  </p>
<p>Let&#8217;s get on with the tutorial then and discover this marketing and sales wonder of a theme.</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/572497.flashplayer"><param name="movie" value="http://view.vzaar.com/572497.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/572497.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/572497.mobile" poster="http://view.vzaar.com/572497.image" controls onclick="this.play();"></video></object>
</div>
<p><!-- VZAAR END --></p>
<p>Like what you see?  You can get the theme <a href="http://buddydress.com/project/product">right here</a> or view the <a href="http://buddypressthemes.org/theme-preview/Product/">demo here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://buddydress.com/2010/06/product-theme-tutorial/feed/</wfw:commentRss>
		<slash:comments>1</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>
	</channel>
</rss>

