<?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>Frumph.NET &#187; Child Theme</title>
	<atom:link href="http://frumph.net/tag/child-theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://frumph.net</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sat, 12 May 2012 15:08:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>ComicPress 2.9 Parent-&gt;Child theme Relationship</title>
		<link>http://frumph.net/2009/11/24/comicpress-2-9-parent-child-theme-relationship/</link>
		<comments>http://frumph.net/2009/11/24/comicpress-2-9-parent-child-theme-relationship/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 00:57:04 +0000</pubDate>
		<dc:creator>Philip M. Hofer (Frumph)</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Child Theme]]></category>

		<guid isPermaLink="false">http://frumph.net/?p=237</guid>
		<description><![CDATA[In ComicPress 2.9 we&#8217;re introducing another way of designing your site. In 2.8 we introduced an over-ride plugin called Companion which allows you to modify your site design without editing any of the original code. We&#8217;ve made another leap forward [&#8230;] <a class="more-link" href="http://frumph.net/2009/11/24/comicpress-2-9-parent-child-theme-relationship/">&#8595; Read the rest of this entry...</a>]]></description>
			<content:encoded><![CDATA[<p>In ComicPress 2.9 we&#8217;re introducing another way of designing your site.   In 2.8 we introduced an over-ride plugin called Companion which allows you to modify your site design without editing any of the original code.   We&#8217;ve made another leap forward with 2.9 and have created a way for the end user to design their sites as theme&#8217;s which will utilize the core code components of ComicPress with the theme design which you create.</p>
<p><span id="more-280"></span></p>
<p><img class="alignleft size-full wp-image-238" src="http://frumph.net/wp-content/uploads/2009/11/childtheme1.png" alt="childtheme1" />Let&#8217;s take a look first and understand how the flow of information gets sent to the visiting user without a child theme.   The visitor uses their browser and contacts the  WordPress CMS to request the page they want to view, WordPress then talks to the theme.   The theme grabs the comic image necessary and it all then is compiled out to the visitor.</p>
<p><img class="size-full wp-image-239 alignright" src="http://frumph.net/wp-content/uploads/2009/11/childtheme2.png" alt="childtheme2" /></p>
<p>With ComicPress 2.9  we have introduced another step in the process called a &#8220;Child Theme&#8221;  a child theme is pretty much just like a regular theme but the core code execution on how the theme behaves is handled by the parent theme, in this case the ComicPress theme.    The visitor uses their browser and contacts the WordPress CMS to request the page they want to view, wordpress them talks to the Child Theme which utilizes the code from the parent theme which grabs the comic image and then outputs the design style of what the child theme has out to the visitor.</p>
<p>This allows the site designer to create their own theme which uses the ComicPress core functions without modifying or editing the original ComicPress theme.   Yes, like Companion, however with the added bonus that whatever files you have in the child theme will override any from the original theme.</p>
<p>This also allows us to provide distributable theme designs that utilize the ComicPress core functions without the core, allowing us to provide the users of ComicPress with a variety of different layouts and designs that can be utilized as base designs to start from.</p>
 <img src="http://frumph.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=280" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://frumph.net/2009/11/24/comicpress-2-9-parent-child-theme-relationship/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Convert your ComicPress 2.9* site to use a child theme.</title>
		<link>http://frumph.net/2010/06/16/convert-your-comicpress-2-9-site-to-use-a-child-theme/</link>
		<comments>http://frumph.net/2010/06/16/convert-your-comicpress-2-9-site-to-use-a-child-theme/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 21:01:36 +0000</pubDate>
		<dc:creator>Philip M. Hofer (Frumph)</dc:creator>
				<category><![CDATA[ComicPress]]></category>
		<category><![CDATA[Child Theme]]></category>
		<category><![CDATA[Custom]]></category>
		<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://frumph.net/?p=1123</guid>
		<description><![CDATA[A child theme is a theme that goes in your wp-content/themes directory that ONLY has your customizations inside of it.   When upgrading ComicPress to newer versions you will not lose all of your customizations since they are centralized in a [&#8230;] <a class="more-link" href="http://frumph.net/2010/06/16/convert-your-comicpress-2-9-site-to-use-a-child-theme/">&#8595; Read the rest of this entry...</a>]]></description>
			<content:encoded><![CDATA[<p>A child theme is a theme that goes in your wp-content/themes directory that ONLY has your customizations inside of it.   When upgrading ComicPress to newer versions you will not lose all of your customizations since they are centralized in a single location.</p>
<p>More information on what a child theme is here:<br />
<a href="http://frumph.net/wordpress/comicpress-2-9-parent-child-theme-relationship/">http://frumph.net/wordpress/comicpress-2-9-parent-child-theme-relationship/</a></p>
<p>Original Post is here:<br />
<a href="http://frumph.net/wordpress/faq/creating-a-custom-child-theme-for-comicpress-2-9/">http://frumph.net/wordpress/faq/creating-a-custom-child-theme-for-comicpress-2-9/</a></p>
<p>A child theme will contain your graphic sets for navigation, avatars, calendars, moods and site graphics;  Your custom CSS, widgets and code overrides.</p>
<p>I have provided a blank comicpress child theme here:<br />
<a href="http://frumph.net/downloads/comicpress-blank.zip">http://frumph.net/downloads/comicpress-blank.zip</a></p>
<ol>
<li>Modify the directory name to one of your chosing, i.e. /comicpress-mysitename/</li>
<li>Change the &#8216;Theme Name, Author and Author URI&#8217; inside the child theme&#8217;s style.css to your custom names.</li>
<li>Put your custom sets of navigation, avatars, calanders, moods in the images folder in this Child Theme, uses the same base structure as the main ComicPress theme, (if you have them, otherwise you can make them later).</li>
<li>If you are using a custom-menubar.php, that too goes into this child theme.</li>
<li>The widgets directory in the child theme is where you can place custom widgets if you make any.</li>
<li>Design your site with Companion or putting the CSS into this child theme&#8217;s style.css</li>
<li>Take a screen capture of your designed site and replace the screenshot.png file in this child theme.</li>
</ol>
<h4>1. Modify the directory name.</h4>
<p>The comicpress-blank.zip file has a directory inside of it called comicpress-blank, you can either upload it via the dashboard -&gt; themes -&gt; add new [upload], or you can ftp the contents into the wp-content/themes directory of your wordpress installation.</p>
<p>When it is on your server, rename the directory to something more coherent then &#8216;blank&#8217; so that you can recognize it as your own.</p>
<p>The end result will be something like this  /wp-content/themes/comicpress-yoursitename/  and the style.css for the child theme is in the /wp-content/themes/comicpress-yoursitename/style.css</p>
<h4>2. Change relevant information inside the style.css of your child theme.</h4>
<pre class="brush: php; title: ; notranslate">
/*
Theme Name: ComicPress Blank
Theme URI: http://comicpress.org
Template: comicpress
Description: Publish a comic with WordPress.  &lt;a href=&quot;http://comicpress.org&quot;&gt;Visit the ComicPress Website.&lt;/a&gt;
Author: Your Name Here
Author URI: http://Your personal site url here/
Version: 1.0
*/
</pre>
<p>This is how the blank child theme originally looks.  You will want to modify this to have the information you want in your child theme.   Change the theme name to represent your webcomic or site.  You&#8217;re the author, change that as well and your website too.</p>
<h4>4. Put your custom stuff in the child theme.</h4>
<p>Now that you have your own child theme you can centralize the location of all of your images &amp; stuff that is used on your site.  The child themes images directory is where you place your site design images that are relevant to the style.css inside the child theme directory.   When using the child themes style.css and your images are in the child themes images directory you can use this path structure in example:</p>
<pre class="brush: css; title: ; notranslate">
body {
	background: #fff url('images/background.jpg') top center no-repeat;
}
</pre>
<p>Notice that the url(&#8216; portion is basically just looking into the images directory that is under the style.css that is calling for that image instead of using some huge http:// patch structure.</p>
<p>Your other graphic sets, like navigation, moods, etc behave the same way as if they were put into the main theme.    If you have custom navigation graphics with it&#8217;s own navstyle.css that you created, instead of going into the /comicpress/images/nav//  directory you would put them into the child theme instead, such as /comicpress-yoursitename/images/nav// and ComicPress will check there as well for the options area in the dashboard when configuring your site.</p>
<h4>5. custom-menubar.php goes into the child theme</h4>
<p>The custom-header.php is basically a file that can be injected into the menubar position wherever it is on your site, instead of the menubar showing it will instead load this file.  This allows you to create your own look and feel for your menubar.   This custom-header.php file when using a child theme needs to be in the child theme directory.</p>
<h4>6 . The widgets directory in the child theme</h4>
<p>You can create your own custom widgets or ones that are specific for your child theme.  This directory gets auto loaded when the theme gets executed to be seen in the widgets area of the dashboard.</p>
<h4>7. Put your CSS changes into the style.css of the child theme.</h4>
<p>In order to continue with this whole &#8220;don&#8217;t edit your comicpress theme&#8221; method of thinking.   Some of you use Companion to do this exact same thing.   However I want to touch up on an important note to those modifying CSS.   You do NOT put the entire style.css set of elements into the custom area or companion.  You ONLY put changes.   For example, in the main ComicPress theme&#8217;s style.css you see:</p>
<pre class="brush: css; title: ; notranslate">
body {
	margin: 0;
	font-family: 'Arial' , sans-serif;
	font-size: 14px;
	color: #000;
}
</pre>
<p>And you want to add a background to the body area and change the color from black to white.   You would want to ONLY put what is changed, like this inside of the style.css of the child theme OR companion:</p>
<pre class="brush: css; title: ; notranslate">
body {
	background: #fff url('images/background.jpg') top center no-repeat;
	color: #000;
}
</pre>
<p>Notice that not *all* of the elements are there, ONLY what is changed.   This allows you to recognize what specific thing is changed instead of trying to figure out a difference between your original and your changes.</p>
<p>Good luck!  If any of you need any assistance in creating your own custom child theme, please do not hesitate to contact me!</p>
<p>- Phil (Frumph)</p>
 <img src="http://frumph.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1123" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://frumph.net/2010/06/16/convert-your-comicpress-2-9-site-to-use-a-child-theme/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to distribute child-themes with your parent theme</title>
		<link>http://frumph.net/2010/12/15/how-to-distribute-child-themes-with-your-parent-theme/</link>
		<comments>http://frumph.net/2010/12/15/how-to-distribute-child-themes-with-your-parent-theme/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 13:48:58 +0000</pubDate>
		<dc:creator>Philip M. Hofer (Frumph)</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Child Theme]]></category>
		<category><![CDATA[distribute]]></category>
		<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://frumph.net/?p=1703</guid>
		<description><![CDATA[A very large issue with child-themes is distribution, the need and want to have your child theme available to your end users so they can have a different variety of looks available that go along with your parent theme. The [&#8230;] <a class="more-link" href="http://frumph.net/2010/12/15/how-to-distribute-child-themes-with-your-parent-theme/">&#8595; Read the rest of this entry...</a>]]></description>
			<content:encoded><![CDATA[<p>A very large issue with child-themes is distribution, the need and want to have your child theme available to your end users so they can have a different variety of looks available that go along with your parent theme.</p>
<p>The following is the method on how to include your child themes with your main parent theme download.</p>
<p><em>The WordPress Dev team doesn&#8217;t recommend this method.  In the future there will be child-themes available to be added to the repo, however this is just a side note on how to implement it if you want to.<br />
</em><br />
The first step is to create a directory in your parent theme called &#8220;child-themes&#8221; and inside that directory, toss all of your child themes that are available for your parent theme into it.</p>
<p style="text-align: center"><img class="size-full wp-image-1704 aligncenter" src="http://frumph.net/wp-content/uploads/2010/12/include-child-theme-step1.jpg" alt="" width="245" height="289" /></p>
<p style="text-align: center">
<p style="text-align: left">Then, open up your parent themes functions.php file and we&#8217;re going to add some code to it, preferably where you init your other functions.</p>
<pre class="brush: php; title: ; notranslate">
add_action('init', 'easel_init_child_theme_directory');

function easel_init_child_theme_directory() {
	register_theme_directory(get_template_directory().'child-themes');
// fix for windows servers and the  / issue.
	add_filter('stylesheet_uri', 'easel_fix_path');
}

function easel_fix_path($stylesheet_uri) {
	$stylesheet_uri = str_replace('', '/', $stylesheet_uri);
	return $stylesheet_uri;
}
</pre>
<p>Using the above addition to your functions.php file is telling WordPress to register the child-themes directory that is IN your template directory (parent) as an additional theme directory to look at for themes.  Also take note to use the  instead of / when using the register_theme_directory() function.</p>
<p>The next step is adjusting your child themes css import, normally with a child theme you would import by going up one directory and then back down to the parent theme directory to find the style.css of the parent, like so:</p>
<pre class="brush: css; title: ; notranslate">
@import url('../easel/style.css');
</pre>
<p>However, since the child themes are now being stored within the parent we need to change the location of where to find the style.css of the parent for importing, such as this:</p>
<pre class="brush: css; title: ; notranslate">
@import url('../../style.css');
</pre>
<p>Basically going up two directories to where the parent themes template root is.</p>
<p>.. and that&#8217;s it.    Now when people activate the theme and go to look in the appearance -&gt; themes, it will also show all the child themes you have available AND you now can distribute your child themes with your parent theme, even on the WordPress.org repository.</p>
<p>- Phil</p>
 <img src="http://frumph.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1703" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://frumph.net/2010/12/15/how-to-distribute-child-themes-with-your-parent-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

