<?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; How-To</title>
	<atom:link href="http://frumph.net/tag/how-to/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>Creating a Custom Child Theme for ComicPress 2.9</title>
		<link>http://frumph.net/2010/03/21/creating-a-custom-child-theme-for-comicpress-2-9/</link>
		<comments>http://frumph.net/2010/03/21/creating-a-custom-child-theme-for-comicpress-2-9/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 05:38:54 +0000</pubDate>
		<dc:creator>Philip M. Hofer (Frumph)</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://frumph.net/?p=496</guid>
		<description><![CDATA[As explained in the post: ComicPress 2.9 Parent -&#62; Child Theme Relationships, ComicPress 2.9 can now use Child Themes to customize your site with.   In this post I&#8217;m going to explain how to do that. The first step is to [&#8230;] <a class="more-link" href="http://frumph.net/2010/03/21/creating-a-custom-child-theme-for-comicpress-2-9/">&#8595; Read the rest of this entry...</a>]]></description>
			<content:encoded><![CDATA[<p>As explained in the post: <a href="http://frumph.net/wordpress/comicpress-2-9-parent-child-theme-relationship/">ComicPress 2.9 Parent -&gt; Child Theme Relationships</a>, ComicPress 2.9 can now use Child Themes to customize your site with.   In this post I&#8217;m going to explain how to do that.<br />
<span id="more-496"></span><br />
The first step is to create a comicpress-&lt;childthemename&gt; directory.   You can look at the comicpress-silver and comicpress-boxed child themes as examples to how to do this.    On my site, I have the comicpress-frumph  directory name.</p>
<p>Inside the newly created directory under themes, in your installation, you&#8217;re going to want to put a style.css file, .. mind you, this is *not* the original style.css that is inside the comicpress installed directory, this child theme style.css is unique to your custom theme.  Again, the best method would probably to take the style.css from inside of the comicpress-boxed.zip or comicpress-silver.zip and use that as a base.</p>
<p>Inside the child theme now, is the basic style.css for that child theme, at the top of that style.css should be this information:</p>
<pre class="brush: css; title: ; notranslate">
/*
Theme Name: ComicPress &lt;yourchildthemenamehere&gt;
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: &lt;who you are&gt;
Author URI: &lt;yourwebsitesurl&gt;
Version: 1.0
.
The CSS, XHTML and design is released under GPL v3:

http://www.opensource.org/licenses/gpl-3.0.html

.
*/

@import url(&quot;../comicpress/style.css&quot;);
</pre>
<p>The &#8220;Theme Name: ComicPress &#8221;  needs to be a unique name, pretty much denoting your comic/sites name as well as something identifying the directory name you chose.</p>
<p>This part, &#8220;Template: comicpress&#8221; means that the comicpress theme (/themes/comicpress/) is what is going to be used as the parent, and the &#8220;@import url(&#8220;../comicpress/style.css&#8221;);&#8221; means to use the style.css from inside the parent theme, then everything *after* that will be overrides or changes to that parent style sheet, pretty much like how you would use theme companion.</p>
<p>Now, your themes directory on your server looks something like this (using my frumph child theme as example):</p>
<pre class="brush: plain; title: ; notranslate">
/wp-content/themes/
/wp-content/themes/comicpress
/wp-content/themes/comicpress/* .. all the files used with comicpress parent.
/wp-content/themes/comicpress-frumph
/wp-content/themes/comicpress-frumph/style.css
</pre>
<p>When customizing your theme, all the &#8216;new changes to the css&#8217; can go into the style.css of your custom child theme that you created, for example if you wanted to change the background of the body (using the frumph child theme example again):</p>
<pre class="brush: css; title: ; notranslate">
/*
Theme Name: ComicPress Frumph
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: Philip M. Hofer (Frumph)
Author URI: http://www.frumph.net/
Version: 1.0
.
The CSS, XHTML and design is released under GPL v3:

http://www.opensource.org/licenses/gpl-3.0.html

.
*/

@import url(&quot;../comicpress/style.css&quot;);

body {
	background: #271200 url('images/background.jpg') top center repeat-x;
}
</pre>
<p>Create an &#8220;images&#8221; directory inside the child theme and put the background.jpg inside of it.   Since I am &#8220;ONLY&#8221; putting changes that I want the CSS to have inside the child themes style.css and not the full replication of the original style.css, I can find the changes I made easily.   This also lets me upgrade ComicPress and use the original comicpress parent themes style.css without editing the original and making some horrible change that I won&#8217;t be able to fix.  Since I am not touching the original there will not be that problem.</p>
<p>The directory structure looks like this:</p>
<pre class="brush: plain; title: ; notranslate">
/wp-content/themes/
/wp-content/themes/comicpress
/wp-content/themes/comicpress/* .. all the files used with comicpress parent.
/wp-content/themes/comicpress-frumph
/wp-content/themes/comicpress-frumph/style.css
/wp-content/themes/comicpress-frumph/images
/wp-content/themes/comicpress-frumph/images/background.jpg
</pre>
<p>Any images I create for my site, I will put inside of the images directory for the child theme.</p>
<div class="non-members-post"><p>There is members only content here.</p></div>
 <img src="http://frumph.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=496" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://frumph.net/2010/03/21/creating-a-custom-child-theme-for-comicpress-2-9/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to setup a PHP Error log for WordPress &#8211; Revisited</title>
		<link>http://frumph.net/2010/04/15/how-to-setup-a-php-error-log-for-wordpress/</link>
		<comments>http://frumph.net/2010/04/15/how-to-setup-a-php-error-log-for-wordpress/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 17:59:54 +0000</pubDate>
		<dc:creator>Philip M. Hofer (Frumph)</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Error Log]]></category>
		<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://frumph.net/?p=388</guid>
		<description><![CDATA[There are a few hosts that do not give you an easy ability to see php errors that might happen. The first step is to edit your wp-config.php in your installation root directory. Add these lines: Although the use of [&#8230;] <a class="more-link" href="http://frumph.net/2010/04/15/how-to-setup-a-php-error-log-for-wordpress/">&#8595; Read the rest of this entry...</a>]]></description>
			<content:encoded><![CDATA[<p>There are a few hosts that do not give you an easy ability to see php errors that might happen.  The first step is to edit your <strong>wp-config.php</strong> in your installation root directory.</p>
<p>Add these lines:</p>
<pre class="brush: php; title: ; notranslate">
ini_set( 'display_errors', 0 );
ini_set( 'log_errors', 1 );
ini_set( 'error_log’, WP_CONTENT_DIR . '/debug.log' );
</pre>
<p>Although the use of WP_CONTENT_DIR doesn&#8217;t work for me, I did this instead.</p>
<pre class="brush: php; title: ; notranslate">
ini_set( 'error_log', dirname(__FILE__) . '/wp-content/debug.log' );
</pre>
<p>Also, since I don&#8217;t want all those silly notices and warning clogging up my debug.log file, I just want errors only, I do this:</p>
<pre class="brush: php; title: ; notranslate">
ini_set( 'error_reporting', E_ALL ^ E_NOTICE );
</pre>
<p>This line basically tells the php parser to report all errors, except notices.    If more plugin programmers would test their plugins with the notices on then I wouldnt have 3 pages of notices come up inside the debug.log file.</p>
<p>So in summary:</p>
<pre class="brush: php; title: ; notranslate">
ini_set( 'display_errors', 0 );
ini_set( 'log_errors', 1 );
ini_set( 'error_log', dirname(__FILE__) . '/wp-content/debug.log' );
ini_set( 'error_reporting', E_ALL ^ E_NOTICE );
</pre>
<p>Based on the comments section, this is a more proper route to go then actually using the defines that were written into the code, dunno why but I take people who know the wordpress core code better then me at their word.   Thanks guys for great comments.</p>
<p>&#8212;&#8212;&#8211;<br />
Then if you navigate to your server&#8217;s wp-content directory there will be a debug.log waiting for you with information in it about what is wrong with your wordpress if an error ever happens.</p>
<p><strong>/wp-content/debug.log</strong></p>
<p>PHP.Net Manual on ini_set: <a href="http://www.php.net/ini_set">http://www.php.net/ini_set</a></p>
<p>- Phil (Frumph)</p>
 <img src="http://frumph.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=388" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://frumph.net/2010/04/15/how-to-setup-a-php-error-log-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Using WordPress [gallery]</title>
		<link>http://frumph.net/2010/04/18/using-wordpress-gallery/</link>
		<comments>http://frumph.net/2010/04/18/using-wordpress-gallery/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 01:15:11 +0000</pubDate>
		<dc:creator>Philip M. Hofer (Frumph)</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Dad]]></category>
		<category><![CDATA[Ethan]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Philip]]></category>

		<guid isPermaLink="false">http://frumph.net/?p=572</guid>
		<description><![CDATA[Just a simple quick explanation of attaching images to a post and making a gallery of it.  When you&#8217;re editing a post or page, you can upload media with the WordPress media upload function and set images into a post. [&#8230;] <a class="more-link" href="http://frumph.net/2010/04/18/using-wordpress-gallery/">&#8595; Read the rest of this entry...</a>]]></description>
			<content:encoded><![CDATA[<p>Just a simple quick explanation of attaching images to a post and making a gallery of it.  When you&#8217;re editing a post or page, you can upload media with the WordPress media upload function and set images into a post.</p>
<p>The WordPress gallery function will let you have it so that not only can you have thumbnails neat and tidy within your post but when clicking on them will send you to a gallery page that you can navigate from one to another.   ComicPress already has this template inside of its theme and has been there since before CP 2.5, however not many people have actually used it.</p>
<p><span id="more-572"></span></p>
<p>When editing a post or page, the button to choose is this one:<br />
<img class="aligncenter size-full wp-image-584" src="http://frumph.net/wp-content/uploads/2010/04/addtogallery.jpg" alt="" width="270" height="61" /></p>
<p>This &#8216;sun like&#8217; icon on the panel when editing a post or page allows the system to know that you are wanting to add this image to the particular gallery that is embedded on the post or page.</p>
<p>The next step is where you want the gallery to appear inside your post you place this short code:</p>
<p>[ gallery ]</p>
<p>NOTE: No spaces inside the brackets, spaces are there currently so it does not trigger.</p>
<p>Having the code [ gallery ] will tell the WordPress CMS to translate that out to the core gallery functions that are built into WordPress itself.</p>
<p>When you upload a picture into the post using the add to gallery button on the post, it will take a thumbnail image, that thumbnail image can be set width and height in the WordPress dashboards settings. In WordPress 3.0 its the wp-admin -&gt; settings -&gt; media panel and you can set 3 different sizes, the thumbnail, medium and large sizes. These are created automatically when you use the media uploader to upload your image.</p>
<p>If you want the gallery function to work properly so that it displays those images as part of the gallery, do *not* click the &#8216;insert into post&#8217; button after uploading the media. It still will attach those pictures just not add them to the post. It will however add them to the [ gallery ] code where ever you place that.</p>
<p>Here are some pictures of my dad to show you.</p>
<p><strong>SHORTCODE SHOULD BE HERE:</strong></p>

<a href='http://frumph.net/2010/04/18/using-wordpress-gallery/dadandme/' title='dadandme'><img width="150" height="150" src="http://frumph.net/wp-content/uploads/2010/04/dadandme1-150x150.jpg" class="attachment-thumbnail" alt="dadandme" title="dadandme" /></a>
<a href='http://frumph.net/2010/04/18/using-wordpress-gallery/082205-006/' title='082205 006'><img width="150" height="150" src="http://frumph.net/wp-content/uploads/2010/04/082205-0061-150x150.jpg" class="attachment-thumbnail" alt="082205 006" title="082205 006" /></a>
<a href='http://frumph.net/2010/04/18/using-wordpress-gallery/082205-007/' title='082205 007'><img width="150" height="150" src="http://frumph.net/wp-content/uploads/2010/04/082205-0071-150x150.jpg" class="attachment-thumbnail" alt="082205 007" title="082205 007" /></a>

<p>Notice the above also included the other image that I have placed in this post to describe what button to place. One of the flaws of using the gallery function is that the controls of what goes into the gallery is not coherent enough to the average user to figure out. Going to the media library on your dashboard I did not find a place to add and remove images to a gallery that&#8217;s attached to a post.</p>
<p>If you click on any pictures in the gallery I placed in this post, it will go to another page that will let you go back and forth in the gallery and allow your users to comment on each one if they like.</p>
<div class="non-members-post"><p>There is members only content here.</p></div>
<p>In the gallery itself after clicking on an image, you can have a plugin like lightbox to expand the image nicely on the screen if the image doesnt fit the width available properly.</p>
<p>Pablo uses it over at Wapsi Square for his <a href="http://wapsisquare.com/projects/the-wapsi-girl/">Wapsi Girl Project</a>.  I have been trying to show David Willis how to use it for his <a href="http://shortpacked.com/cast/">cast</a> page.  Notice on their pages they have extra text and information on the particular images those can be set in the media library per the image  you have associated with the page.</p>
<p>- Phil</p>
<p>WordPress.ORG Codex on Gallery: <a href="http://codex.wordpress.org/Gallery_Shortcode" target="_blank">http://codex.wordpress.org/Gallery_Shortcode</a></p>
 <img src="http://frumph.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=572" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://frumph.net/2010/04/18/using-wordpress-gallery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Storylines, Chapters &amp; Navigation, oh my!</title>
		<link>http://frumph.net/2010/04/30/storylines-chapters-navigation-oh-my/</link>
		<comments>http://frumph.net/2010/04/30/storylines-chapters-navigation-oh-my/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 18:49:44 +0000</pubDate>
		<dc:creator>Philip M. Hofer (Frumph)</dc:creator>
				<category><![CDATA[ComicPress]]></category>
		<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://frumph.net/?p=711</guid>
		<description><![CDATA[This little how-to on ComicPress 2.9&#8242;s Storylines is something I&#8217;ve been needing to put up for awhile now.   The thing is, with the old &#8216;other dev&#8217; code and working with ComicPress Manager it never truly functioned properly.  &#8230; well until [&#8230;] <a class="more-link" href="http://frumph.net/2010/04/30/storylines-chapters-navigation-oh-my/">&#8595; Read the rest of this entry...</a>]]></description>
			<content:encoded><![CDATA[<p>This little how-to on ComicPress 2.9&#8242;s Storylines is something I&#8217;ve been needing to put up for awhile now.   The thing is, with the old &#8216;other dev&#8217; code and working with ComicPress Manager it never truly functioned properly.  &#8230; well until recently when I had enough time to actually jump into it and duct tape it all together.</p>
<p>There are 2 different methods of &#8216;walking&#8217; your comics with ComicPress 2.9, the first is by date.</p>
<p><span id="more-711"></span></p>
<p>Every comic post you make is individually made on a single date.  There is, with the limitation of ComicPress 1 comic post day.   This method of navigating by date starts with the oldest date and clicking next brings you up the path to newer dates in time.</p>
<p>The second method is by Category, i.e. a storyline chapter.  This also uses dates but with new navigation buttons it will let you walk the category alone, ignoring other comics that are posted in alternate categories and walks specifically on that one category.</p>
<h4>Root Comic Category</h4>
<p>When installing ComicPress you have to create both a primary comic category and a primary blog category.   These categories provide the code to understand which posts are the comics and which are the blogs.  Simple to think about yeah?  Well when we start using Storyline&#8217;s you now need to think of the primary comic category as the &#8220;Root Category&#8221; instead of primary.</p>
<p>The root comic category is the highest level parent of all the chapters and books you are going to create.   This is important to name properly for several reasons, the most importan reason is your URI line when people access your site and you&#8217;re using a pretty permalinks setup.  I have seen some people name that category the same name as their comic, so when looking at the URI line it appears something like this (in example, mojojocomic is the root category name):</p>
<p>http://mojojocomic.com/mojojocomic/book-1/chapter-1/</p>
<p>We &#8216;already&#8217; know that the site we&#8217;re looking at is the mojojocomic so naming the root category like &#8216;webcomic&#8217; would be more important.</p>
<p>http://mojojocomic.com/webcomic/book-1/chapter-1/</p>
<p>This will add another level of SEO reference on search engines to know that it&#8217;s a webcomic as well.</p>
<p>However, with users that have a different domain then their comic, it would be more advantageous to have the root comic category named as their comic, in this example mojojostudios.com is the studio and Endless Break is the comic&#8217;s name, so using the endless-break as the root category name for your comics is appropriate.</p>
<p>http://mojojostudios.com/endless-break/book-1/chapter-1/</p>
<p>This is using the settings -&gt; permalinks -&gt; [x] Custom:  /%category%/%postname%/   as the permalink structure, which I recommend everyone using.</p>
<h4>ComicPress Manager -&gt; Storylines</h4>
<p>Now comes the fun part, setting up your storylines.   There are three accepted methods of creating storylines.</p>
<p>The first method is to seperate your chapters into seperate books.</p>
<p><a href="http://frumph.net/wp-content/uploads/2010/04/storylines1.jpg" rel="lightbox[711]"><img class="aligncenter size-full wp-image-713" src="http://frumph.net/wp-content/uploads/2010/04/storylines1.jpg" alt="" width="444" height="207" /></a></p>
<p>The second being just using straight individual chapters.</p>
<p><a href="http://frumph.net/wp-content/uploads/2010/04/storylines2.jpg" rel="lightbox[711]"><img class="aligncenter size-full wp-image-714" src="http://frumph.net/wp-content/uploads/2010/04/storylines2.jpg" alt="" width="425" height="341" /></a>Or even a mixture of both.</p>
<p><a href="http://frumph.net/wp-content/uploads/2010/04/storylines3.jpg" rel="lightbox[711]"><img class="aligncenter size-full wp-image-715" src="http://frumph.net/wp-content/uploads/2010/04/storylines3.jpg" alt="" width="466" height="378" /></a>As you see in the above image depictions of the chapter navigation it goes from &#8216;oldest to newest&#8217; in order of chapters.   However, in the last example the christmas and pinups categories are at the top.   Storyline&#8217;s like that do not necessarily have to be in order.</p>
<p>This is because when your navigation from chapter to chapter with the next and previous chapter buttons it will move along the first post made in each category.   This is important to remember because without a post in the category for it to move on the chapter navigation will stop cold and not be able to move further.  For a more visual reference here&#8217;s what i&#8217;m writing about:</p>
<p><a href="http://frumph.net/wp-content/uploads/2010/04/storylines4.jpg" rel="lightbox[711]"><img class="aligncenter size-full wp-image-716" src="http://frumph.net/wp-content/uploads/2010/04/storylines4.jpg" alt="" width="466" height="378" /></a>Even though your comics are posted into the individual chapters, the BOOK #&#8217;s require to have a post/comic book cover inside of them in order for the chapter navigation to work properly.</p>
<h4>!Important</h4>
<p>Comic posts <strong>require</strong> that they ONLY be in a single category i.e. chapter.   When selecting which comic goes into which category you can <strong>ONLY HAVE ONE</strong> chosen.   In the above example if you have a comic for the WebComic -&gt; Book &#8211; 2 -&gt; Chapter 1 &#8211; Morbid Curiosity, it can ONLY be set in the &#8216;Chapter-1 Morbid Curiosity&#8217;.    The core code figures out the rest as necessary, do not put more then one category, do not set that comic in the webcomic, book -2 and other categories, the lowest chapter in the hierarchy is what is needed.</p>
<h4>ComicPress Navigation Widget&#8217;s</h4>
<p>Yes, .. widgets.   When storyline&#8217;s are enabled, several of the widgets open up &#8216;new&#8217; options inside of them to handle the storylines.</p>
<p>The most important is the ComicPress Navigation widget.     If you go to appearance-&gt; widgets and have it in a sidebar and then open it up while it&#8217;s in the sidebar you will see new options for displaying chapter navigation.   Previous Chapter, Next Chapter, Previous IN Chapter and Next IN Chapter buttons will be available. ..  the Previous and Next IN chapter will allow your readers to walk &#8216;inside&#8217; that chapter.</p>
<p>The other widget that uses the Storyline code is the ComicPress Archive Dropdown widget.   When you open this widget up you will see that you can then have a drop down that will open up into individual chapters.</p>
<p>- Phil</p>
 <img src="http://frumph.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=711" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://frumph.net/2010/04/30/storylines-chapters-navigation-oh-my/feed/</wfw:commentRss>
		<slash:comments>6</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>
		<item>
		<title>How to add social media icons to the Menubar w/ the ComicPress and Easel themes.</title>
		<link>http://frumph.net/2010/12/25/how-to-add-social-media-icons-to-the-menubar-w-the-comicpress-and-easel-themes/</link>
		<comments>http://frumph.net/2010/12/25/how-to-add-social-media-icons-to-the-menubar-w-the-comicpress-and-easel-themes/#comments</comments>
		<pubDate>Sun, 26 Dec 2010 05:03:03 +0000</pubDate>
		<dc:creator>Philip M. Hofer (Frumph)</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[comicpress]]></category>
		<category><![CDATA[easel]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[social media]]></category>

		<guid isPermaLink="false">http://frumph.net/?p=1732</guid>
		<description><![CDATA[The first thing to understand is that there are &#8216;action&#8217; locations all over the Easel theme and some in the ComicPress theme, ComicPress 2.9.2.28+ has a new one in the menunav area of the menubar, while the Easel theme&#8217;s menunav [&#8230;] <a class="more-link" href="http://frumph.net/2010/12/25/how-to-add-social-media-icons-to-the-menubar-w-the-comicpress-and-easel-themes/">&#8595; Read the rest of this entry...</a>]]></description>
			<content:encoded><![CDATA[<p>The first thing to understand is that there are &#8216;action&#8217; locations all over the Easel theme and some in the ComicPress theme, ComicPress 2.9.2.28+ has a new one in the menunav area of the menubar, while the Easel theme&#8217;s menunav had some previously a new one is introduced in version 1.1.7</p>
<p>Those action locations allow you to use your child theme to &#8216;inject&#8217; code into certain areas of the theme.   With Easel the action location we are going to use is called &#8216;easel-menubar-menunav&#8217;  and in ComicPress it&#8217;s called &#8216;comicpress-menubar-menunav&#8217;  see the trend in the naming conventions yet? /grin</p>
<p>In both themes there&#8217;s a file available to be used in your child theme, it&#8217;s called &#8220;child-functions.php&#8221;  If you do not have one you can create it.</p>
<p>The first thing we&#8217;re going to do is go to the Easel Options &amp; ComicPress Options and disable the RSS feed from displaying in the menubar.</p>
<p>After that, open up the child-functions.php file in your child theme and let&#8217;s start adding the code.</p>
<h4>For Easel:</h4>
<pre class="brush: php; title: ; notranslate">
add_action('easel-menubar-menunav', 'easel_social_icons');

function easel_social_icons() {
	echo '&lt;a href=&quot;http://www.twitter.com/Frumph&quot; title=&quot;Follow Frumph on Twitter&quot; class=&quot;menunav-social menunav-twitter&quot;&gt;Twitter&lt;/a&gt;'.&quot;rn&quot;;
	echo '&lt;a href=&quot;http://www.facebook.com/philip.hofer&quot; title=&quot;Friend Frumph on Facebook&quot; class=&quot;menunav-social menunav-facebook&quot;&gt;Facebook&lt;/a&gt;'.&quot;rn&quot;;
	echo '&lt;a href=&quot;'.get_bloginfo('rss2_url').'&quot; title=&quot;RSS Feed&quot; class=&quot;menunav-social menunav-rss2&quot;&gt;RSS&lt;/a&gt;'.&quot;rn&quot;;
}
</pre>
<h4>For ComicPress:</h4>
<pre class="brush: php; title: ; notranslate">
add_action('comicpress-menubar-menunav', 'comicpress_social_icons');

function comicpress_social_icons() {
	echo '&lt;a href=&quot;http://www.twitter.com/Frumph&quot; title=&quot;Follow Frumph on Twitter&quot; class=&quot;menunav-social menunav-twitter&quot;&gt;Twitter&lt;/a&gt;'.&quot;rn&quot;;
	echo '&lt;a href=&quot;http://www.facebook.com/philip.hofer&quot; title=&quot;Friend Frumph on Facebook&quot; class=&quot;menunav-social menunav-facebook&quot;&gt;Facebook&lt;/a&gt;'.&quot;rn&quot;;
	echo '&lt;a href=&quot;'.get_bloginfo('rss2_url').'&quot; title=&quot;RSS Feed&quot; class=&quot;menunav-social menunav-rss2&quot;&gt;RSS&lt;/a&gt;'.&quot;rn&quot;;
}
</pre>
<p>Then we&#8217;re going to place 3 images into the images directory of your child theme, I put them into a subdirectory of that images directory called icons because i&#8217;m a stickler for organization.</p>
<p>The RSS, Twitter and Facebook images that I use</p>
<p><a href="http://frumph.net/wp-content/uploads/2010/12/facebook.png" rel="lightbox[1732]"><img src="http://frumph.net/wp-content/uploads/2010/12/facebook.png" alt="" width="25" height="50" class="alignleft size-full wp-image-1733" /></a><a href="http://frumph.net/wp-content/uploads/2010/12/twitter.png" rel="lightbox[1732]"><img src="http://frumph.net/wp-content/uploads/2010/12/twitter.png" alt="" width="25" height="50" class="alignleft size-full wp-image-1734" /></a><a href="http://frumph.net/wp-content/uploads/2010/12/rss.png" rel="lightbox[1732]"><img src="http://frumph.net/wp-content/uploads/2010/12/rss.png" alt="" width="25" height="50" class="alignleft size-full wp-image-1735" /></a></p>
<div class="clear"></div>
<p>Notice that with these 3 images that the actually consist of a &#8220;normal&#8221; state and a &#8220;hover&#8221; state inside of the image itself, that way we do not need so many images loading all the time.  The more CSS proficient people can add them all into a single image and do background-position&#8217;ing to find the right locations to use.</p>
<p>Next is the CSS, the CSS is the same for both ComicPress and Easel; you should put the CSS into the child-themes style.css so that it can be easier to path to the images in the images directory.</p>
<hr />Now for the CSS</h4>
<pre class="brush: css; title: ; notranslate">
/* menunav social icons */

.menunav-social {
	text-indent: -9999px;
	display: inline-block;
	float: left;
	height: 25px;
	width: 25px;
}

.menunav-twitter {
	background: url('images/icons/twitter.png') no-repeat;
}

.menunav-rss2 {
	background: url('images/icons/rss.png') no-repeat;
	margin-right: 3px;
}

.menunav-facebook {
	background: url('images/icons/facebook.png') no-repeat;
}	

.menunav-social:hover {
	background-position: 0 -25px;
}
</pre>
<p>If you look at this css, the .menunav-social sets the block removes the text from displaying and allocations the 25px by 25px space to use, then each of the relative icons have their own class for which image to use, finally the .menunav-social:hover changes the positioning to show the hover state of the graphic when the icon is moused over.</p>
<p>&#8230; erm.. and that&#8217;s it, now you have social icons in your menubar.</p>
<p>- Phil</p>
 <img src="http://frumph.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1732" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://frumph.net/2010/12/25/how-to-add-social-media-icons-to-the-menubar-w-the-comicpress-and-easel-themes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

