<?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>BPease Design &#187; Tutorial</title>
	<atom:link href="http://www.bpeasedesign.com/category/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bpeasedesign.com/blog</link>
	<description>Creation is subject to failure but not desire</description>
	<lastBuildDate>Wed, 27 Jan 2010 06:12:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating a Christmas E Card</title>
		<link>http://www.bpeasedesign.com/blog/2009/12/creating-a-christmas-e-card/</link>
		<comments>http://www.bpeasedesign.com/blog/2009/12/creating-a-christmas-e-card/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 03:45:55 +0000</pubDate>
		<dc:creator>Bob Pease</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://www.bpeasedesign.com/?p=923</guid>
		<description><![CDATA[<img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/final-image1.jpg" alt="final-image" title="final-image" width="500" height="300" class="aligncenter size-full wp-image-947" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s Christmas time, and to celebrate the season I&#8217;ve put together a simple tutorial to design an E Card to send your friends, family, clients, or whoever you think could think could use a bit of Christmas cheer. </p>
<p><span id="more-923"></span></p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/final-image1.jpg" alt="final-image" title="final-image" width="500" height="300" class="aligncenter size-full wp-image-947" /></p>
<p><strong>Step 1: Setting up the canvas</strong></p>
<p>Let&#8217;s start by creating a new 500&#215;300 canvas. Set the resolution to 72 px/in, and color mode to RBG color, 8 bit. </p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/step-1.jpg" alt="step-1" title="step-1" width="572" height="363" class="aligncenter size-full wp-image-924" /></p>
<p>Next we&#8217;ll apply a gradient to our background layer #AD0404 to #870404.</p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/background-gradient.jpg" alt="background-gradient" title="background-gradient" width="443" height="501" class="aligncenter size-full wp-image-925" /></p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/step-1-gradient.jpg" alt="step-1-gradient" title="step-1-gradient" width="500" height="300" class="aligncenter size-full wp-image-958" /></p>
<p><strong>Step 2: Add some snow</strong></p>
<p>Create a new layer called &#8220;Snow&#8221; (Ctrl + Shift + N). Use a soft round brush and set the size somewhere around 15px. </p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/snow-brush.jpg" alt="snow-brush" title="snow-brush" width="282" height="341" class="aligncenter size-full wp-image-926" /></p>
<p>In your brush settings pallet apply Scattering and Other Dynamics as follows, be sure your foreground color is set to white.</p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/brush-settings.jpg" alt="brush-settings" title="brush-settings" width="371" height="404" class="aligncenter size-full wp-image-928" /></p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/step-2.jpg" alt="step-2" title="step-2" width="500" height="300" class="aligncenter size-full wp-image-952" /></p>
<p><strong>Step 3: Add a lens flare</strong></p>
<p>Add a new layer called &#8220;flare&#8221; and fill it in black (Ctrl + Backspace). Then go to Filter>Render>Lens Flare and set the brightness to 50%, and select 50-300mm Zoom. Click the bottom right corner of the Flare Center section and click OK. </p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/lens-flare.jpg" alt="lens-flare" title="lens-flare" width="319" height="452" class="aligncenter size-full wp-image-932" /></p>
<p>Now set the blending options of this layer to Screen. Duplicate this layer (Ctrl + J) and go to Edit>Transform>Flip Vertical. Then move the new image up and to the right a few pixels.</p>
<p>The lens flare adds some lighting effects across the entire image, which I chose to get rid of. Just use the Erase tool as you see fit and get rid of the parts you don&#8217;t want.</p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/step-3.jpg" alt="step-3" title="step-3" width="500" height="300" class="aligncenter size-full wp-image-953" /></p>
<p><strong>Step 4: Add the tree</strong></p>
<p>Grab this Christmas brush set <a href="http://flina.deviantart.com/art/Christmas-brushes-103012446">http://flina.deviantart.com/art/Christmas-brushes-103012446</a> and select the &#8220;tree1&#8243; brush and set the size to 400px. Place the tree on top of our snow/lens flare layers. Then go to the blending options and set the Color Overlay to #870404, and Outer Glow to white. </p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/tree-brush.jpg" alt="tree-brush" title="tree-brush" width="244" height="299" class="aligncenter size-full wp-image-936" /></p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/tree-blending1.jpg" alt="tree-blending" title="tree-blending" width="477" height="816" class="aligncenter size-full wp-image-939" /></p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/step-4.jpg" alt="step-4" title="step-4" width="500" height="300" class="aligncenter size-full wp-image-954" /></p>
<p><strong>Step 5: Adding icons</strong></p>
<p>Now we&#8217;ll add a couple of Christmas icons. I used a <a href="http://www.iconarchive.com/category/christmas-icons.html"> Santa Clause</a> and a <a href="http://www.icondrawer.com/free.php">Christmas present</a>. Resize them to your liking, be sure the present is over the Santa Clause and let&#8217;s give it a drop shadow to make it stand out a little bit. </p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/present-blend.jpg" alt="present-blend" title="present-blend" width="487" height="346" class="aligncenter size-full wp-image-941" /></p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/step-5.jpg" alt="step-5" title="step-5" width="500" height="300" class="aligncenter size-full wp-image-955" /></p>
<p><strong>Step 6: Adding the text</strong></p>
<p>I chose a nice script font from Font Squirrel called <a href="http://www.fontsquirrel.com/fonts/Beautiful-ES">Beautiful-ES</a>. I chose a slightly smaller font size for &#8220;Merry&#8221; and positioned the text in the upper left corner of the canvas. </p>
<p><strong>Step 7: Adding your own touch</strong></p>
<p>Now we have a template for a nice E Card. Add your message in the middle of canvas and send it off!</p>
<p><img src="http://www.bpeasedesign.com/wp-content/uploads/2009/12/final-image1.jpg" alt="final-image" title="final-image" width="500" height="300" class="aligncenter size-full wp-image-947" /></p>
<p>You can download the final .psd file <a href='http://www.bpeasedesign.com/wp-content/uploads/2009/12/christmas_ecard_final.zip'>here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bpeasedesign.com/blog/2009/12/creating-a-christmas-e-card/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Styling wp_list_pages</title>
		<link>http://www.bpeasedesign.com/blog/2009/11/styling-default-wordpress-navigation/</link>
		<comments>http://www.bpeasedesign.com/blog/2009/11/styling-default-wordpress-navigation/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 23:22:26 +0000</pubDate>
		<dc:creator>Bob Pease</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.bpeasedesign.com/?p=869</guid>
		<description><![CDATA[Recently I was approached by someone who wanted to add some styling to the default wordpress navigation. The theme uses &#60;?php wp_list_pages(); ?&#62; for the navigation. The functionality of the site calls for several main pages, with sub pages in each. The layout will be a horizontal menu, with sub pages listed horizontally below.


The Breakdown
Let&#8217;s first break down what using [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-870" title="code" src="http://www.bpeasedesign.com/wp-content/uploads/2009/11/code.jpg" alt="code" width="150" height="150" /><span class="big-letter">R</span>ecently I was approached by someone who wanted to add some styling to the default wordpress navigation. The theme uses &lt;?php wp_list_pages(); ?&gt; for the navigation. The functionality of the site calls for several main pages, with sub pages in each. The layout will be a horizontal menu, with sub pages listed horizontally below.</p>
<p><span id="more-869"></span></p>
<hr />
<h3>The Breakdown</h3>
<p>Let&#8217;s first break down what using &lt;?php wp_list_pages(&#8216;&amp;title_li=&#8217;); ?&gt; will spit out in your HTML. This function embeds each page link within a list item of an unordered list. The link for each sub page is then put into a new unordered list witin the initial list item of the parent page. Below is an example of the HTML generated for 1 parent page with 2 child pages.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;ul&gt;
	&lt;li&gt;
      &lt;a href=&quot;#&quot;&gt;Page 1&lt;/a&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;P1 Sub Page 1&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;P1 Sub Page 2&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;</pre></div></div>

<p>For further documentation of this function, see <a href="http://codex.wordpress.org/Template_Tags/wp_list_pages">http://codex.wordpress.org/Template_Tags/wp_list_pages</a>.</p>
<h3>Putting It To Use</h3>
<p>To impliment this into your own theme, you will first want to call the function. I recommend putting this within a &lt;div&gt; with a specified id, to better control the CSS.</p>
<p>HTML:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;main-nav&quot;&gt;&lt;/div&gt;</pre></div></div>

<p>Then style the &lt;ul&gt; and &lt;li&gt; elements by nexting them within #main-nav.</p>
<p>CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#main-nav</span><span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#main-nav</span> ul<span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">list-style-type</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;">#main-nav</span> li<span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#main-nav</span> li a<span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#4aa1ff</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">text-decoration</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;">#main-nav</span> li a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>At this point, every page and subpage will have the same styles. Let&#8217;s take this a step further by adding some CSS for those sub pages.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#main-nav</span> li li a<span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fb7200</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#main-nav</span> li li a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>If we created children in our sub pages, we could simply apply the same logic in our CSS and add another section #main-nav li li li a{} with different styles from the initial 2.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bpeasedesign.com/blog/2009/11/styling-default-wordpress-navigation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Styling Your WP Search Forms</title>
		<link>http://www.bpeasedesign.com/blog/2009/11/styling-your-wp-search-forms/</link>
		<comments>http://www.bpeasedesign.com/blog/2009/11/styling-your-wp-search-forms/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 03:47:24 +0000</pubDate>
		<dc:creator>Bob Pease</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.bpeasedesign.com/?p=769</guid>
		<description><![CDATA[Recently I had the task of setting up a new WordPress theme for a local group. In the mock up of the website I had made a search field that required a bit more work than I was used to. It took me a while to get everything in place, so I thought I&#8217;d share the steps I went though [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-824" title="magnifying-glass" src="http://www.bpeasedesign.com/wp-content/uploads/2009/11/magnifying-glass-150x150.jpg" alt="magnifying-glass" width="150" height="150" /><span class="big-letter">R</span>ecently I had the task of setting up a new WordPress theme for a local group. In the mock up of the website I had made a search field that required a bit more work than I was used to. It took me a while to get everything in place, so I thought I&#8217;d share the steps I went though to achieve the final result.</p>
<p><span id="more-769"></span></p>
<hr />
<h3>The End Result</h3>
<p><img title="search-final" src="http://www.bpeasedesign.com/wp-content/uploads/2009/11/search-final.jpg" alt="search-final" width="309" height="108" /></p>
<h3>Step 1: The Basics</h3>
<p>Let&#8217;s keep it really simple to start with. Open your favorite HTML editor (mine is Dreamweaver) and create a new HTML page. In the &lt;body&gt; tags put the following line of code and save this file as index.html.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;input type=&quot;text&quot; /&gt;
&lt;input type=&quot;submit&quot; /&gt;</pre></div></div>

<p>When you preview this page you should see something like this:</p>
<p><img class="alignnone size-full wp-image-826" title="step1" src="http://www.bpeasedesign.com/wp-content/uploads/2009/11/step1.jpg" alt="step1" width="501" height="301" /></p>
<h3>Step 2: Reset Default Styles</h3>
<p>So now that we have a plain old input box and submit button, let&#8217;s make it pretty. Start by creating your searchbox &amp; button as an image and saving as a .PNG. Here is the image I&#8217;ve created for my form:</p>
<p><img class="alignnone size-full wp-image-825" title="search-back" src="http://www.bpeasedesign.com/wp-content/uploads/2009/11/search-back.jpg" alt="search-back" width="500" height="50" /></p>
<p>The width doesn&#8217;t matter, as we are applying this as a background image.</p>
<p>Now let&#8217;s go back to that initial markup we put in the HTML page and apply a class to each piece. Also set the <em>value=&#8221;"</em> so that there is no text in the submit button.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;input class=&quot;search-text&quot; type=&quot;text&quot; /&gt;
&lt;input class=&quot;search-btn&quot; type=&quot;submit&quot; value=&quot;&quot; /&gt;</pre></div></div>

<p>The next step is writing the CSS. In between your &lt;head&gt; tags let&#8217;s create our CSS and take away the default styles of the input fields:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">.search-text{
    background:url(search-back.png) 0 0 no-repeat;
    border:0;
    }
.search-btn{
    background:url(search-back.png) -216px 0 no-repeat;
    border:0;
    }</pre></div></div>

<p>Now you should see something like this:</p>
<p><img class="alignnone size-full wp-image-826" title="step1" src="http://www.bpeasedesign.com/wp-content/uploads/2009/11/step2.jpg" alt="step1" width="501" height="301" /></p>
<h3>Step 3: Expanding The CSS</h3>
<p>Now we need our CSS to tell our form how big to be, in order to match the size of our images.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">.search-text{
    background:url(search-back.png) 0 0 no-repeat;
    border:0;
    height:24px;
    width:200px;
     }
.search-btn{
    background:url(search-back.png) -216px 0 no-repeat;
    border:0;
    height:24px;
    width:34px;
    }</pre></div></div>

<p>Let&#8217;s refresh our page and see what we have now.</p>
<p><img class="alignnone size-full wp-image-826" title="step1" src="http://www.bpeasedesign.com/wp-content/uploads/2009/11/step3.jpg" alt="step1" width="501" height="301" /></p>
<h3>Step 4: Fixing The Layout</h3>
<p>We&#8217;re almost done! We now need to get our submit button position correctly with our text input. We&#8217;ll add a <em>position:absolute</em> to the search-btn class:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">.search-text{
    background:url(search-back.png) 0 0 no-repeat;
    border:0;
    height:24px;
    width:200px;
    }
.search-btn{
    background:url(search-back.png) -216px 0 no-repeat;
    border:0;
    height:24px;
    width:34px;
    position:absolute;
    }</pre></div></div>

<p><img class="alignnone size-full wp-image-826" title="step1" src="http://www.bpeasedesign.com/wp-content/uploads/2009/11/step4.jpg" alt="step1" width="501" height="301" /></p>
<h3>Step 5: The Final Touches</h3>
<p>Now try typing in the input field. Not terrible, but the text is a bit off. So let&#8217;s add a font-size and text indent to the search-text class of our CSS. We&#8217;ll also define the cursor on the search-btn since we&#8217;ve reset the defaults and it currently doesn&#8217;t change.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">.search-text{
    background:url(search-back.png) 0 0 no-repeat;
    border:0;
    height:24px;
    width:200px;
    font-size:18px;
    text-indent:5px;
    }
.search-btn{
    background:url(search-back.png) -216px 0 no-repeat;
    border:0;
    height:24px;
    width:34px;
    position:absolute;
    cursor:pointer;
    }</pre></div></div>

<p><a href="http://www.bpeasedesign.com/wp-content/uploads/2009/11/step61.jpg"><img class="alignnone size-full wp-image-844" title="step6" src="http://www.bpeasedesign.com/wp-content/uploads/2009/11/step61.jpg" alt="step6" width="501" height="300" /></a></p>
<h3>Step 6: Applying To Wordpress</h3>
<p>I always have an easier time designing WordPress parts like this as basic pages outside of my theme. When I&#8217;m done I then apply the changes to my theme.</p>
<p>In your WordPress theme, open searchform.php and add the classes to <em>&lt;input type=&#8221;text&#8221; &gt;</em> and <em>&lt;input type=&#8221;" &gt;</em> (these may vary slightly depending on the theme, but it should be pretty straight forward). Some themes do not have searchform.php, and if that is the case simply create one on your own with the values we created in index.html. Next apply your CSS changes, and be sure to copy your image to the appropriate folder!</p>
<h3>That&#8217;s A Wrap!</h3>
<p>I hope you found this tutorial helpful. Take it to the max and please share what you&#8217;ve made! Feel free to download the HTML/CSS code for the search form, as well as the .PNG &amp; .PSD files.</p>
<p><a class="download-link" href="http://www.bpeasedesign.com/wp-content/uploads/2009/11/styleSearchTutorial.zip"><span>styleSearchTutorial</span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bpeasedesign.com/blog/2009/11/styling-your-wp-search-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
