<?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>Cozmoslabs &#187; installing</title>
	<atom:link href="http://www.cozmoslabs.com/tag/installing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cozmoslabs.com</link>
	<description>Web design and development experiment.</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:05:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Installing WordPress Child Themes and Customizing the Byty Theme</title>
		<link>http://www.cozmoslabs.com/164-installing-wordpress-child-themes-customizing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-wordpress-child-themes-customizing</link>
		<comments>http://www.cozmoslabs.com/164-installing-wordpress-child-themes-customizing/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 14:25:16 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[installing]]></category>
		<category><![CDATA[Thematic]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=164</guid>
		<description><![CDATA[Source byty.ro Since I&#8217;ve launched by first WordPress Child Theme based on Thematic I thought writing about how you can make small changes to the theme and put your own graphical logo, add css for other plugins, basically create a customized version of it. This post is divided in 4 different parts, particularly: Installing WordPress [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/145-byty-free-child-theme-built-thematic/' rel='bookmark' title='Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/1287-all-child-themes-got-updated/' rel='bookmark' title='All Child Themes got updated'>All Child Themes got updated</a></li>
<li><a href='http://www.cozmoslabs.com/620-early-morning-child-theme/' rel='bookmark' title='Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="postimage"><img class="alignnone size-medium wp-image-181" title="byty_theme2" src="http://www.cozmoslabs.com/wp-content/uploads/2008/10/byty_theme2.jpg" alt="" width="300" height="200" /></p>
<p>Source <a href="http://byty.ro/">byty.ro</a></p>
</div>
<p>Since I&#8217;ve launched by first <a href="http://www.cozmoslabs.com/2008/10/25/byty-free-child-theme-built-thematic/">WordPress Child Theme</a> based on Thematic I thought writing about how you can make small changes to the theme and put your own graphical logo, add css for other plugins, basically create a customized version of it.</p>
<p>This post is divided in 4 different parts, particularly:</p>
<ol>
<li><strong>Installing WordPress Child Themes</strong></li>
<li><strong>Adding your Own Logo</strong></li>
<li><strong>Adding a standard top ad banner to your page</strong></li>
<li><strong>Creating css to style plugins that do not display perfectly on your theme </strong></li>
</ol>
<p><span id="more-164"></span></p>
<h3>1. Installing WordPress Child Themes</h3>
<p>WordPress Child Themes are a new concept introduced not a long time ago that allow you to inherit all of the functionality of a parent theme and overwrite the css style, change the images and some parts of the html through the use of <em>functions.php</em> file. We won&#8217;t go in a lot of detail on how to create a Child Theme here, but if you are interested and want to find out more please have a look <a href="http://www.cozmoslabs.com/2008/08/11/10-design-tips-for-your-custom-wordpress-theme-built-with-thematic/">here</a>, <a href="http://www.cozmoslabs.com/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/">here</a> and <a href="http://themeshaper.com/blog/functions-php-wordpress-child-themes/">here</a>.</p>
<p>To get started you need to <a href="http://themeshaper.com/thematic-for-wordpress/">Download the Thematic Theme</a> (this is the parent theme), then <a href="http://www.cozmoslabs.com/2008/10/25/byty-free-child-theme-built-thematic/">Download the Byty Child Theme</a>.</p>
<p>Once this is out of the way you have to <strong>upload both of the themes to your server</strong> in the <em>/themes</em> folder, just like you would do with any other theme. After the parent and child theme have been uploaded you can now <strong>activate the child theme</strong> (you don&#8217;t have to setup anything for the parent theme).</p>
<p>This is it! Now you know how to install a <strong>WordPress Child Theme</strong>. Easy isn&#8217;t it!</p>
<h3>2. Adding your own logo</h3>
<p>I&#8217;ve designed the Byty Child Theme to be easy to customize. With this in mind you can add your own logo in no time through the use of CSS.</p>
<p>First thing you need to do is to make sure that your logo is 205px by 60px or something similar. You need to upload the logo into the <em>wp-content/themes/byty/images</em> folder.</p>
<p>Next open <em>wp-content/themes/byty/styles.css</em> file and find the <em>#blog-title</em> and <em>#blog-title a</em> declarations.</p>
<p>In the <em>#blog-title</em> declaration remove the comments (<em>/* this is a css comment */</em> ) from <em>background:url(images/logo.gif) 0px 63px no-repeat;</em> and replace <em>logo.gif</em> with your own personal logo.</p>
<p>In the <em>#blog-title a</em> declaration remove the comments from <em>filter:alpha(opacity=0); -moz-opacity: 0;	opacity:0;</em>. This will make the title of your blog transparent, basically hiding it and letting the logo to be displayed in the back. This is good from an accessibility point of view since if you disable the CSS you can still see the text from your Blog Title.</p>
<p>In the end this is how that particular piece of css should look like:</p>

<div class="wp_codebox"><table><tr id="p1643"><td class="code" id="p164code3"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#blog-title</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/my_personal_logo.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">0px</span> <span style="color: #933;">63px</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">205px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">84px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">60px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#blog-title</span> a<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">60px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">60px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#2772b3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span><span style="color: #ff0000;">&quot;Trebuchet MS&quot;</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
filter<span style="color: #00AA00;">:</span>alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
-moz-opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>If everything is in order, once you reload your page you should see the logo displayed on top of the Child Theme.</p>
<h3>3. Adding a standard top ad banner to your page</h3>
<p>For this we&#8217;ll use the functions.php file that comes with the Byty Child Theme.</p>
<p>Once you open that file you&#8217;ll see the flowing code:</p>

<div class="wp_codebox"><table><tr id="p1644"><td class="code" id="p164code4"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/* Register Top Add Wiget */</span>
<span style="color: #000000; font-weight: bold;">function</span> add_top_ad<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;top_ad&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> Please add a 728px by 90px Standard Banner <span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'thematic_belowheader'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'add_top_ad'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>In place of <em>< ! -- Please add a 728px by 90px Standard Banner -- > </em> you can add your own Google Adsense ad or leave it unchanged if you don&#8217;t what Ads on your site. You can add more ads to your site in the sidebars or in the content of your site through the use of text widgets.</p>
<h3>4. Creating css to style plugins that do not display perfectly on your theme</h3>
<p>If you have a plugin that isn&#8217;t displaying perfectly with the Byty Child Theme I recommend you open <em>wp-content/themes/byty/extra.css</em> and add any other css that you might need in there. This way you have separated files for the theme and your plugins.</p>
<p>As you can see there isn&#8217;t that much to say about this and I hope I&#8217;ve been clear with my explications.</p>
<p>If you&#8217;ve customized or used the Byty Child Theme please let me know! I&#8217;m interested to see for what you are using it!</p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/145-byty-free-child-theme-built-thematic/' rel='bookmark' title='Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/1287-all-child-themes-got-updated/' rel='bookmark' title='All Child Themes got updated'>All Child Themes got updated</a></li>
<li><a href='http://www.cozmoslabs.com/620-early-morning-child-theme/' rel='bookmark' title='Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/164-installing-wordpress-child-themes-customizing/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

