<?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"
	>

<channel>
	<title>Developer Tutorials' Webmaster Blog &#187; web dev</title>
	<atom:link href="http://www.developertutorials.com/blog/tag/web-dev/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developertutorials.com/blog</link>
	<description>Keeping webmasters up-to-date on technology.</description>
	<pubDate>Tue, 02 Sep 2008 14:59:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Designing and Coding a Wordpress Theme From Scratch (Part 2)</title>
		<link>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-2-144/</link>
		<comments>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-2-144/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 18:05:02 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Photoshop]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[photoshop]]></category>

		<category><![CDATA[theme]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[web dev]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-2-144/</guid>
		<description><![CDATA[Going From Photoshop to XHTML to Wordpress Theme.  In this multi-part series I'll detail how to create and design a Wordpress theme in Photoshop and take it from just an idea to fully coded.
]]></description>
			<content:encoded><![CDATA[<p>Designing your first Wordpress theme may seem incredibly ambitious at first but it&#8217;s really not that hard.  It may help your understanding of Wordpress if you find a theme you like and disect or remix it.  This is how I learned to code and one of <a href="http://goscreative.blogspot.com/2008/04/free-wordpress-theme-unstandard-remix.html" target="_blank">my first attempt</a> was a variation of Derek Punsalan&#8217;s theme <a href="http://goscreative.blogspot.com/2008/04/free-wordpress-theme-unstandard-remix.html" target="_blank">The Unstandard</a>.In <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-1-143/" target="_blank">Part 1</a> I talked a bit about the tools you&#8217;ll need and how to get prepared.  Now that you&#8217;ve done that we&#8217;re going to get started.</p>
<p><b>Layout and Structure</b></p>
<p><a href="http://www.37signals.com/papers/introtopatterns/" target="_blank">This post</a> by 37 Signals is an incredibly detailed account of how to organize information and using sketches to design for the web. I highly recommend taking a break to read it. As mentioned in the post sketching out the general layout of your site will help you.  For my design I started with this sketch:</p>
<p><span id="more-144"></span></p>
<p><img src="http://farm3.static.flickr.com/2073/2448707505_f104ebe039.jpg" alt="sketching a website"></p>
<p>Let&#8217;s compare the sketch to the finished theme:</p>
<p><a href='http://www.developertutorials.com/blog/wp-content/uploads/2008/04/picture-1.png'><img src="http://farm3.static.flickr.com/2001/2449394258_676eb5ea2b.jpg" alt="sketch to code" class="alignnone size-medium wp-image-145" /></a></p>
<p>As you can see my marked up design remains fundamentally similar to the original concept sketch.</p>
<p><b>Designing WordPress Themes in Photoshop</b></p>
<p>We&#8217;ve got our sketch, lets open up Photoshop and start designing.  Since every design is different, I won&#8217;t bother explaining every single choice I made, instead I&#8217;m going to give you some tips on laying out your design so that it can be successfully marked up for the web.  </p>
<ol>
<li>1. <strong>Work to a grid.</strong> I don&#8217;t necessarily mean the grid that you get when you type <strong>Command+&#8217;</strong> but rather working to a structurally sound grid that corresponds to the <a href="http://www.sitepoint.com/article/principles-beautiful-web-design/3" target="_blank">golden ratio</a> or <a href="http://joshuaclanton.com/blog/2008/01/18/one-third-to-rule-them-all-applying-the-rule-of-thirds-to-web-design/" target="_blank">the rule of thirds</a>. This is because Photoshop has to &#8217;slice&#8217; your resulting design into rectangles and if you keep it in mind while you design, that can be done easily at the end.</li>
<p>In the above picture you can see that I worked to a grid that I created using guides.  As my design progressed, the grid got incredibly convoluted but these lines correspond in some way to the layout and skeleton of the site.  I&#8217;d say this is even more important for minimal designs like my own.</p>
<p><img src="http://farm3.static.flickr.com/2260/2449595376_d365e77b2f.jpg" alt="rule of thirds web design"></p>
<li>2.  <strong>The fewer the slices the better.</strong> So when you finish your design you&#8217;ll slice it into sectors that will then be marked up to xhtml and subsequently php to create your theme.  This the last thing you want is a 100 different areas to code separately. If you study the image below you&#8217;ll see that I had about 16 &#8217;sliced areas&#8217;.
<p><img src="http://farm4.static.flickr.com/3100/2449595324_214a605a44.jpg" alt="slice to xhtml wordpress"></p>
<p>Try not to have more than 20.  Why?  Because each of these slices are images that have to be downloaded and displayed when someone visits your website.  The more images, the slower the load time will be for people with slower connections.  Although in <a href="http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/">Part 5</a> I&#8217;ll show you how to optimize your image based website for speed, it&#8217;s better practice to have fewer slices.</li>
<li><strong>3. Make each content area it&#8217;s own slice.</strong> I can&#8217;t stress how important this is!  For someone new to XHTML it can be incredibly hard to figure out how to float &lt; div &gt; tags so that content areas remain separate.  The laymans solution?  Don&#8217;t bother!  If all your content is contained in &lt; div &gt; &#8217;s for a specific image or &#8217;slice&#8217; you won&#8217;t have to.
<p>Another reason to do this is that if you have a content area that is divided into slices that cut up the content space, you&#8217;re going to have a much harder time trying to make the content display correctly over two background images.
</li>
<li><strong>4. Work in color proof mode.</strong> When I&#8217;m designing for the web I&#8217;ve learned to work entirely, start to finish, in color proof mode (<strong>command+Y for Mac / control+y for Pc</strong>).  This is because colors in Photoshop can be deceiving and if you aren&#8217;t using websafe colors, you need to make sure everything translates as you want it to.  I explained this in more detail in a previous <a href="http://www.developertutorials.com/blog/design/photoshop-design/color-proofing-photoshop-120/" title="color photoshop proof" target="_blank">article here</a>.</li>
<li><strong>5. Think in 3D.</strong>Your design should not be thought of as a flat surface.  It has depth and the things that are different elevations should be treated the same.  For instance, if you have text or images ontop of content areas in your design, you may want to call on them in the stylesheet instead of leaving &#8216;flat&#8217; as part of the background images.  Thus all stylized text like your header text or social bookmarking links should be images that are displayed with CSS.  This is the second and topmost layer of your design with the layout existing <i>below</i></li>
</ol>
<p>Got all that?  Let&#8217;s move on to <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/">Part 3 - Photoshop to XHTML in 24 Hours!</a></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d144" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-2-144/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+2%29" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-2-144/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+2%29" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-2-144/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+2%29" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-2-144/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
