<?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>gorirrajoe &#187; html</title>
	<atom:link href="http://gorirrajoe.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://gorirrajoe.com</link>
	<description>another FPSA production</description>
	<lastBuildDate>Mon, 21 May 2012 01:40:45 +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>wordpress: creating your own custom theme</title>
		<link>http://gorirrajoe.com/wordpress-creating-your-own-custom-theme/</link>
		<comments>http://gorirrajoe.com/wordpress-creating-your-own-custom-theme/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 00:24:45 +0000</pubDate>
		<dc:creator>Joey</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[wordpress tutorial]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[pngfix]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.gorirrajoe.com/?p=965</guid>
		<description><![CDATA[hot on the heels of my first tutorial, i come back at ya with a new one. i REALLY like using wordpress as a cms &#8212; not only for its ease of customization or its extensive library of useful (mostly) plugins, but for these two huge reasons: ability for the end-user to modify the web [...]]]></description>
			<content:encoded><![CDATA[<p>hot on the heels of my first tutorial, i come back at ya with a new one.</p>
<p>i REALLY like using wordpress as a cms &#8212; not only for its ease of customization or its <a href="http://wordpress.org/extend/plugins/" target="_blank">extensive library</a> of useful (mostly) plugins, but for these two huge reasons:</p>
<ol>
<li> ability for the end-user to modify the web site content without breaking the overall site geography</li>
<li>search engine optimization &#8212; yea i kinda did mention them earlier, but several plugins can work to help your site get spidered like the best of them.</li>
</ol>
<p>so i guess that answers the &#8220;why use wordpress?&#8221; question &#8212; here&#8217;s my method of getting a custom theme setup for wordpress<br />
<span id="more-965"></span>firstly, i&#8217;ll need to assume that you, the reader, knows how to write html/css/php code&#8230; if you don&#8217;t, <a href="http://www.lmgtfy.com/?q=w3+schools" target="_blank">go here</a></p>
<p>i normally start off by creating the site geography (layout) through standard HTML (i still like using *gasp* dreamweaver for this step because it speeds up the whole html/css writing)</p>
<p>when creating the stylesheet, save the file as &#8220;style.css&#8221;</p>
<p>if possible, i try to make the site look as final as possible at this step &#8212; it&#8217;ll make the code portion a whole lot smoother later on</p>
<p>next, download <a href="http://wordpress.org/" target="_blank">wordpress</a> to your local machine and go to the &#8220;wp-content\themes&#8221; directory</p>
<p>go into the &#8220;default&#8221; folder and rename the &#8220;style.css&#8221; file to &#8220;_style.css&#8221; &#8212; you&#8217;ll be keeping this as a backup. there are some things that you might not have remembered to style (such as comments, image alignment, etc.) that you can easily grab from that file.</p>
<p>place a copy of your custom &#8220;style.css&#8221; file into the &#8220;default&#8221; folder</p>
<p>now the part that gets a little tricky&#8230; i&#8217;m starting to now regret wanting to write this&#8230; ha</p>
<p>start with the &#8220;header.php&#8221; file and, with your html mock-up, compare the two to make sure the &lt;head&gt; portion is similar*</p>
<p>*they obviously won&#8217;t be the same, but i meant that you want to port over script code such as the <a href="http://homepage.ntlworld.com/bobosola/index.htm" target="_blank">png fix</a>: (<a href="http://www.gorirrajoe.com/wp-content/uploads/2009/07/pngfix.js" target="_blank">file here</a>)</p>
<pre>&lt;!--[if lt IE 7.]&gt;
&lt;script defer type="text/javascript" src="pngfix.js"&gt;&lt;/script&gt;
&lt;![endif]--&gt;</pre>
<p>or favicons:</p>
<pre>&lt;link rel="shortcut icon" href="&lt;?php bloginfo('stylesheet_directory'); ?&gt;
/images/favicon2.ico" /&gt;</pre>
<p>if the masthead (and perhaps navigation setup) is the same on all pages, i put those into the &#8220;header.php&#8221; file as well (since all pages of the site will be using this file)</p>
<p>next i go to &#8220;footer.php&#8221; &#8212; normally, this won&#8217;t need much modification. maybe some closing &lt;div&gt; tags, copyright info, or even analytics code</p>
<p>next up is the &#8220;sidebar.php&#8221; file &#8212; if the site is a simple site (non-blog), then you probably just want the &#8220;wp_list_pages()&#8221; function:</p>
<p>this is the skiMonkey &#8220;sidebar.php&#8221;:</p>
<pre>&lt;?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */
?&gt;
&lt;div id="nav" role="complementary"&gt;
 &lt;ul&gt;
  &lt;?php wp_list_pages('depth=1&amp;title_li=' ); ?&gt;
 &lt;/ul&gt;
&lt;/div&gt;</pre>
<p>there are a ton of functions within wordpress &#8212; it&#8217;s all a matter of researching what you&#8217;ll need</p>
<p>next, you have the &#8220;content&#8221; pages &#8212; this is the body of the site. the nice part is that once you do one page, the rest of the pages will be easy &#8212; start with &#8220;page.php&#8221; (if you have a non-blog, you&#8217;re pretty much done after this, though i would HIGHLY suggest updating all php files)</p>
<p>again, compare the php and html pages, adding in your &lt;div&gt; tags wherever needed.</p>
<p>if you created and tested your html properly (especially by placing <a href="http://www.lipsum.com/" target="_blank">lorem ipsum</a> code in the main content area, this should be a quick process)</p>
<p>remember, you&#8217;re basically wrapping the content within your &lt;div&gt; tags &#8212; no need to totally remove (just edit) the code that is already in the files.</p>
<p>now the moment of truth &#8212; upload and install wordpress to your server</p>
<p>after installation, you should be able to go to the site and see your newly styled site!</p>
<p>*yes, i do <strong>a lot </strong>of assumptions &#8212; but that&#8217;s where comments come in handy &#8212; if you have any questions, ask and i&#8217;ll try my best to answer!</p>
]]></content:encoded>
			<wfw:commentRss>http://gorirrajoe.com/wordpress-creating-your-own-custom-theme/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

