<?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>Beyond Caffeine &#187; Tutorials</title>
	<atom:link href="http://blog.websitestyle.com/index.php/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.websitestyle.com</link>
	<description>Various Epiphanies of a Technical Mind</description>
	<lastBuildDate>Wed, 03 Nov 2010 22:27:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Automatic Post Thumbnails Without Plugins</title>
		<link>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/</link>
		<comments>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 16:20:08 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[automatic]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[thumbnails]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/?p=648</guid>
		<description><![CDATA[Recently I had to make a WordPress theme for someone who is very uncomfortable with the technical process of downloading pictures and uploading them, so asking this person to resize or crop photos to make thumbnails was out of the question. Regardless, she needs to have a unique picture on each post of her new [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had to make a WordPress theme for someone who is very uncomfortable with the technical process of downloading pictures and uploading them, so asking this person to resize or crop photos to make thumbnails was out of the question. Regardless, she needs to have a unique picture on each post of her new site &#8211; so my challenge was how to make that as easy as possible.</p>
<p>Now certainly, I could have used one of the php bits to create thumbnails on the fly like TimThumb &#8211; but I really dislike using plugins for things I can do without them. She also gets totally confused using custom fields, so that&#8217;s out as well.</p>
<p>What I needed to do:<br />
1. Determine a standard size for thumbnails and post images that would work well for her theme.<br />
2. Create a post thumbnail using the first image attached to a post.<br />
3. Display the post thumbnails on the blog main page listing of recent posts.<br />
4. Create a standard image that would be displayed if she forgot to add any images to a post.</p>
<p>Since I&#8217;m a big fan of reusing code, I decided I wanted to use the built in sizing options of WordPress to get this done. I remembered recently reading an article with a chunk of code, so I found it again and reused that. <a href="http://webdeveloperplus.com/wordpress/how-to-use-thumbnails-generated-by-wordpress-in-your-theme/">The code process can be found on Web Developer Plus</a>.</p>
<h3>Setting The Image Sizes</h3>
<p>Go to your WordPress backend and then Settings -> Media and configure the sizes that work well for your theme.</p>
<p>The thumbnail size is the most important. I set this one to 150px by 150px and selected the option to crop the thumbnails to that size. The reason I selected the crop is in the likely case the photo she&#8217;s using isn&#8217;t a perfect square, the image won&#8217;t look out of proportion when it&#8217;s sized down to 150&#215;150.</p>
<h3>Creating a Thumbnail From The First Image</h3>
<p>This is where we get the <a href="http://webdeveloperplus.com/wordpress/how-to-use-thumbnails-generated-by-wordpress-in-your-theme/">code bit from Web Developer Plus</a> and with a couple of minor changes end up with this:</p>
<p><code>&lt;?php<br />
// Get images attached to the post<br />
$img = null;<br />
$args = array(<br />
'post_type' =&gt; 'attachment',<br />
'post_mime_type' =&gt; 'image',<br />
'numberposts' =&gt; -1,<br />
'order' =&gt; 'ASC',<br />
'post_status' =&gt; null,<br />
'post_parent' =&gt; $post-&gt;ID<br />
);<br />
$attachments = get_posts($args);<br />
if ($attachments) {<br />
foreach ($attachments as $attachment) {<br />
$img = wp_get_attachment_thumb_url( $attachment-&gt;ID );<br />
break;<br />
} ?&gt;<br />
&lt;!-- Display the image in here --&gt;<br />
&lt;?php }<br />
?&gt;</code></p>
<p>The code, at this point, doesn&#8217;t do much but it will in the next steps. I do want to stop and explain the terminology a bit. You&#8217;ll notice the use of the word &#8216;attachment&#8217; in the code above. That&#8217;s how WordPress identifies the image associated with the post. Think of sending an email and attaching photos to it. The code finds the images attached to the post and selects the first one. It puts the information about that image in the $img variable we&#8217;ll use later.</p>
<p>It is important to note that this only works for attached photos because that is what WordPress it set up to handle. That means that if you host your photos elsewhere and just link to them &#8211; it&#8217;s not going to work. You have to actually upload them into WordPress using the media uploader.</p>
<h3>Deciding Where To Put The Thumbnail Code</h3>
<p>Since I want the thumbnails to show up on the main page of the site in the list of recent posts down the content section, I need to edit the index.php that displays the content. Your site may use the_content() but in this example the site is using the_excerpt(). It doesn&#8217;t really matter, so long as this stuff goes inside the loop but before the spot you want to show your photo.</p>
<p><code>&lt;div class=&quot;thecontent&quot;&gt;<br />
&lt;?php the_excerpt(); ?&gt;<br />
&lt;span&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot; class=&quot;readon&quot;&gt;Read the rest of '&lt;?php the_title(); ?&gt;'&lt;/a&gt;&lt;/span&gt;<br />
&lt;/div&gt; &lt;!-- end thecontent --&gt;<br />
</code></p>
<p>I&#8217;m going to add the bit of code right above the call to the_excerpt() because that&#8217;s easiest at this point.</p>
<p><code><span style="font-weight:bold; color:red;">&lt;div class=&quot;thecontent&quot;&gt;<br />
&lt;!-- get the thumbnail --&gt;<br /></span><br />
&lt;?php<br />
// Get images attached to the post<br />
$img = null;<br />
$args = array(<br />
'post_type' =&gt; 'attachment',<br />
'post_mime_type' =&gt; 'image',<br />
'numberposts' =&gt; -1,<br />
'order' =&gt; 'ASC',<br />
'post_status' =&gt; null,<br />
'post_parent' =&gt; $post-&gt;ID<br />
);<br />
$attachments = get_posts($args);<br />
if ($attachments) {<br />
foreach ($attachments as $attachment) {<br />
$img = wp_get_attachment_thumb_url( $attachment-&gt;ID );<br />
break;<br />
} ?&gt;<br />
&lt;!-- Display the image in here --&gt;<br />
&lt;?php }<br />
?&gt;<br /><span style="font-weight:bold; color:red;"><br />
&lt;!-- end get the thumbnail --&gt;<br />
&lt;?php the_excerpt(); ?&gt;<br /></span><br />
</code></p>
<h3>Display the Thumbnails on the Main Page</h3>
<p>Now the code is actually in the area it should be, but it&#8217;s still not going to show anything until we put something in place of the &#8216;&lt;!&#8211; Display the image in here &#8211;&gt;&#8217; placeholder. What the code HAS done is created the $img variable we can call. So let&#8217;s get that working by putting in some code that will call the image.</p>
<p><code>&lt;div class=&quot;thecontent&quot;&gt;<br />
&lt;!-- get the thumbnail --&gt;<br />
&lt;?php<br />
//Get images attached to the post<br />
$img = null;<br />
$args = array(<br />
'post_type' =&gt; 'attachment',<br />
'post_mime_type' =&gt; 'image',<br />
'numberposts' =&gt; -1,<br />
'order' =&gt; 'ASC',<br />
'post_status' =&gt; null,<br />
'post_parent' =&gt; $post-&gt;ID<br />
);<br />
$attachments = get_posts($args);<br />
if ($attachments) {<br />
foreach ($attachments as $attachment) {<br />
$img = wp_get_attachment_thumb_url( $attachment-&gt;ID );<br />
break;<br />
} ?&gt;<br /><span style="font-weight:bold; color:red;"><br />
&lt;!-- ***** THE ACTUAL IMAGE ***** --&gt;<br />
&lt;span class=&quot;the-thumbnail&quot;&gt;<br />
&nbsp;&nbsp;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;img src=&quot;&lt;?php echo $img; ?&gt;&quot; /&gt;<br />
&nbsp;&nbsp;&lt;/a&gt;<br />
&lt;/span&gt;<br />
&lt;!-- ***** END THE ACTUAL IMAGE ***** --&gt;<br /></span><br />
&lt;?php }<br />
?&gt;<br />
&lt;!-- end get the thumbnail --&gt;<br />
&lt;?php the_excerpt(); ?&gt;<br />
</code></p>
<p>What the above code has done is take the placeholder and replace it with a call to the image.</p>
<p>Then since this is for a front page thumbnail, we want people to go to the main article so we create a link around the image that points to the article.</p>
<p>Finally, for CSS styling I wrapped it in a span called the-thumbnail (you can wrap it in something other than a span, name the class anything you like, and style it any which way you can think of).</p>
<h3>But What If&#8230; There&#8217;s No Image?</h3>
<p>But wait&#8230; what if my client forgets to add an image to a post? That one article will look strange on the main page without an image when most of the others have one.</p>
<p>I want to create a fail-safe for dealing with an instance where she might forget to put in a photo for the post. What to do first is create some kind of dummy image (maybe just a large square with the site logo / branding or whatever you want). Upload that image somewhere.</p>
<p><code>&lt;!-- ***** THE ACTUAL IMAGE ***** --&gt;<br />
&nbsp;<br />
&lt;!-- # if post has an image # --&gt;<br />
&lt;span class=&quot;the-thumbnail&quot;&gt;<br />
&nbsp;&nbsp;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;img src=&quot;&lt;?php echo $img; ?&gt;&quot; /&gt;<br />
&nbsp;&nbsp;&lt;/a&gt;<br />
&lt;/span&gt;<br />
&lt;!-- # END if post has an image # --&gt;<br />
<span style="font-weight:bold; color:red;"><br />
&lt;!-- # if post doesn't have an image --&gt;<br />
&lt;?php  } else { ?&gt;<br />
&lt;span class=&quot;the-thumbnail&quot;&gt;<br />
  &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;<br />
    &lt;img src=&quot;http://thedomain.com/fallback-thumb.jpg&quot; /&gt;<br />
  &lt;/a&gt;<br />
&lt;/span&gt;<br />
&lt;!-- # END if post doesn't have an image --&gt;<br /></span><br />
&lt;!-- ***** END THE ACTUAL IMAGE ***** --&gt;</code></p>
<p>The most important line in that new section is &lt;?php  } else { ?&gt; &#8212; that tells it to do something if there is no photo.</p>
<p>You&#8217;ll see that you can just as easily change the url of the image to be any image location you upload the fall-back image to.</p>
<h3>Putting It All Together</h3>
<p>So here&#8217;s what we came up with after that. I&#8217;ll highlight the sections of my template code so you can see where I put it inside the template. Remember, your index page may not use the_excerpt() &#8211; it may use the_content(). That&#8217;s perfectly ok so long as:</p>
<p>1. You put the code that generates the thumbnail somewhere inside the loop &#8211; the loop beginning looks like this: <code>&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;</code><br />
2. You put the image display code where you want it to be.</p>
<p>So here&#8217;s the final code I used on my clients site:</p>
<p><code><span style="font-weight:bold; color:red;">&lt;div class=&quot;thecontent&quot;&gt;<br /></span><br />
&lt;!-- get the thumbnail --&gt;<br />
&lt;?php<br />
//Get images attached to the post<br />
$img = null;<br />
$args = array(<br />
'post_type' =&gt; 'attachment',<br />
'post_mime_type' =&gt; 'image',<br />
'numberposts' =&gt; -1,<br />
'order' =&gt; 'ASC',<br />
'post_status' =&gt; null,<br />
'post_parent' =&gt; $post-&gt;ID<br />
);<br />
$attachments = get_posts($args);<br />
if ($attachments) {<br />
foreach ($attachments as $attachment) {<br />
$img = wp_get_attachment_thumb_url( $attachment-&gt;ID );<br />
break;<br />
} ?&gt;<br />
&lt;!-- ***** THE ACTUAL IMAGE ***** --&gt;<br />
&nbsp;<br />
&lt;!-- # if post has an image # --&gt;<br />
&lt;span class=&quot;the-thumbnail&quot;&gt;<br />
&nbsp;&nbsp;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;img src=&quot;&lt;?php echo $img; ?&gt;&quot; /&gt;<br />
&nbsp;&nbsp;&lt;/a&gt;<br />
&lt;/span&gt;<br />
&lt;!-- # END if post has an image # --&gt;<br />
&nbsp;<br />
&lt;!-- # if post doesn't have an image --&gt;<br />
&lt;?php  } else { ?&gt;<br />
&lt;span class=&quot;the-thumbnail&quot;&gt;<br />
  &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;<br />
    &lt;img src=&quot;http://thedomain.com/fallback-thumb.jpg&quot; /&gt;<br />
  &lt;/a&gt;<br />
&lt;/span&gt;<br />
&lt;!-- # END if post doesn't have an image --&gt;<br />
&nbsp;<br />
&lt;!-- ***** END THE ACTUAL IMAGE ***** --&gt;<br />
&lt;?php }<br />
?&gt;<br />
&lt;!-- end get the thumbnail --&gt;<br /><span style="font-weight:bold; color:red;"><br />
&lt;?php the_excerpt(); ?&gt;</span></code></p>
<p>Oh, and remember &#8212; if you don&#8217;t like the size your thumbnails are coming out as &#8212; change it in Settings -> Media.</p>
<p>I hope you found that useful <img src='http://blog.websitestyle.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2009/08/21/automatic-post-thumbnails-without-plugins/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>SilverStripe Modules &#8211; An Overview</title>
		<link>http://blog.websitestyle.com/index.php/2009/03/30/silverstripe-modules-an-overview/</link>
		<comments>http://blog.websitestyle.com/index.php/2009/03/30/silverstripe-modules-an-overview/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 10:31:30 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[screencast]]></category>
		<category><![CDATA[silverstripe]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/?p=393</guid>
		<description><![CDATA[Watch a video showing a quick overview of a few SilverStripe modules and how they can expand the capabilities of your CMS.]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;m publishing the second of the series I&#8217;m doing to quickly introduce you to the SilverStripe CMS. These videos are meant to be rapid overviews &#8211; not in-depth examinations, so if you&#8217;re looking to simply get acquainted with SilverStripe, or try to decide if it&#8217;s something you&#8217;d like to try out, this might be exactly what you want to watch.</p>
<p>The following video will cover a few of the core supported modules for SilverStripe: Userforms, Blog, Forums, and E-Commerce.</p>
<p><strong>I strongly suggest that if you want to be able to see this clearly, you <a href="http://vimeo.com/3919433">view the SilverStripe Modules video in HD</a> and use fullscreen instead of watching the embedded clip below.</strong></p>
<div class="vimeo-clip-hd">
<object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=3919433&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=3919433&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object><br /><a href="http://vimeo.com/3919433">SilverStripe CMS &#8211; Modules Overview</a> from <a href="http://vimeo.com/nicolehernandez">Nicole Hernandez</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>This video provides a quick overview of some of the primary modules that can be easily integrated into the SilverStripe CMS.
</p></div>
<p>View the post about the first video in this overview series on <a href="http://blog.websitestyle.com/index.php/2009/03/10/cms-with-seo-silverstripe/">SilverStripe SEO</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2009/03/30/silverstripe-modules-an-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Searching By Category</title>
		<link>http://blog.websitestyle.com/index.php/2009/03/12/wp-search-by-category/</link>
		<comments>http://blog.websitestyle.com/index.php/2009/03/12/wp-search-by-category/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 21:36:41 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[search by category]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/?p=346</guid>
		<description><![CDATA[Sometimes you really want to just search a specific category &#8211; more importantly, you might want your visitor to be able to do that. The generic search is going to search everything, well not exactly since the WordPress search is fairly lousy without some plugin help, but it will work for category searching just fine. [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you really want to just search a specific category &#8211; more importantly, you might want your visitor to be able to do that.</p>
<p>The generic search is going to search everything, well not exactly since the WordPress search is fairly lousy without some plugin help, but it will work for category searching just fine. In fact, it&#8217;s only going to take one line of code to add the functionality to your search, if you&#8217;re using a basic theme like the WordPress Default. Custom themes might be more of an issue, so if you get stuck, paste the code that handles your search in the comments and I&#8217;ll -try- to help, no guarantees.</p>
<p>Ok, let&#8217;s do this with the WordPress Default theme.</p>
<p>The default theme search box should look like this in your sidebar:<br />
<div id="attachment_347" class="wp-caption aligncenter" style="width: 402px"><img src="http://blog.websitestyle.com/wp-content/uploads/2009/03/wp-search-cats-before.gif" alt="The Search Box Before Category Search." title="wp-search-cats-before" width="392" height="259" class="size-full wp-image-347" /><p class="wp-caption-text">The Search Box Before Category Search.</p></div></p>
<p>We need to add our line of code to give the users an option to search by categories. So I want you to head over to Appearance -> Editor which will pull up your template files. This will show you the right template files IF you are currently using the WordPress Default theme, if not, use the dropdown box in the right area of the page to switch to the WordPress Default theme.</p>
<p>On the right side of the page, click on the Search Form (searchform.php) file to open that one for editing. The code page you&#8217;re viewing inside should look like this:</p>
<div id="attachment_348" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.websitestyle.com/wp-content/uploads/2009/03/wp-search-cats-during.gif"><img src="http://blog.websitestyle.com/wp-content/uploads/2009/03/wp-search-cats-during-300x147.gif" alt="WordPress Default Search Form Editing." title="wp-search-cats-during" width="300" height="147" class="size-medium wp-image-348" /></a><p class="wp-caption-text">WordPress Default Search Form Editing.</p></div>
<p>The code looks like this:<br />
<code>&lt;form method=&quot;get&quot; id=&quot;searchform&quot; action=&quot;&lt;?php bloginfo('home'); ?&gt;/&quot;&gt;<br />
&lt;div&gt;&lt;input type=&quot;text&quot; value=&quot;&lt;?php the_search_query(); ?&gt;&quot; name=&quot;s&quot; id=&quot;s&quot; /&gt;<br />
&lt;input type=&quot;submit&quot; id=&quot;searchsubmit&quot; value=&quot;Search&quot; /&gt;<br />
&lt;/div&gt;<br />
&lt;/form&gt;<br />
</code></p>
<p>We&#8217;re going to add one line as follows:</p>
<p><code>&lt;form method=&quot;get&quot; id=&quot;searchform&quot; action=&quot;&lt;?php bloginfo('home'); ?&gt;/&quot;&gt;<br />
&lt;div&gt;&lt;input type=&quot;text&quot; value=&quot;&lt;?php the_search_query(); ?&gt;&quot; name=&quot;s&quot; id=&quot;s&quot; /&gt;<br />
<strong>&lt;?php wp_dropdown_categories('depth=0&amp;orderby=name&amp;hide_empty=1&amp;show_option_all=Search Everything'); ?&gt;</strong><br />
&lt;input type=&quot;submit&quot; id=&quot;searchsubmit&quot; value=&quot;Search&quot; /&gt;<br />
&lt;/div&gt;<br />
&lt;/form&gt;<br />
</code></p>
<p>So let&#8217;s break down what that line is doing:</p>
<p><code>&lt;?php wp_dropdown_categories('depth=0&amp;orderby=name&amp;hide_empty=1&amp;show_option_all=Search Everything'); ?&gt;</code></p>
<p><strong>Depth = 0</strong> is setting it so that we&#8217;re seeing ALL categories, not just parent or child categories. In another article coming up I&#8217;ll show you how to be more specific about categories when dealing with parent/child categories.</p>
<p><strong>Order By = Name</strong> is telling them to show in alphabetical order.</p>
<p><strong>Hide Empty = 1</strong> is making sure we don&#8217;t see categories that have no posts in them to be searched.<br />
<strong><br />
Show Option All = Search Everything</strong> is creating an option for them to search all the posts and should be the default.</p>
<p>What do we get?</p>
<div id="attachment_353" class="wp-caption aligncenter" style="width: 216px"><img src="http://blog.websitestyle.com/wp-content/uploads/2009/03/wp-search-cats-after.gif" alt="The Final Search By Category view for the WordPress Default." title="wp-search-cats-after" width="206" height="187" class="size-full wp-image-353" /><p class="wp-caption-text">Search By Category.</p></div><br />
<div id="attachment_377" class="wp-caption alignright" style="width: 147px"><img src="http://blog.websitestyle.com/wp-content/uploads/2009/03/wp-search-cats-after2.gif" alt="Showing Dropdown" title="wp-search-cats-after2" width="137" height="187" class="size-full wp-image-377" /><p class="wp-caption-text">Showing Dropdown</p></div>
<p>Now it&#8217;s up to you to style it and make it look pretty <img src='http://blog.websitestyle.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2009/03/12/wp-search-by-category/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Three Powerful Safari Features That Few People Use</title>
		<link>http://blog.websitestyle.com/index.php/2008/03/23/three-powerful-safari-features-that-few-people-use/</link>
		<comments>http://blog.websitestyle.com/index.php/2008/03/23/three-powerful-safari-features-that-few-people-use/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 23:31:51 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[features]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/index.php/2008/03/23/three-powerful-safari-features-that-few-people-use/</guid>
		<description><![CDATA[Safari is an excellent browser for many reasons; its speed, clean aesthetics and ease of use are attractive from the outset. But there are a few extremely attractive and lesser known features that people should be taking advantage of as well.read more &#124; digg story]]></description>
			<content:encoded><![CDATA[<p><img src="http://img404.imageshack.us/img404/5296/safarilogopng1096f9dme7.jpg" alt="Safari logo." /></p>
<p>Safari is an excellent browser for many reasons; its speed, clean aesthetics and ease of use are attractive from the outset. But there are a few extremely attractive and lesser known features that people should be taking advantage of as well.<br/><br/><a href="http://dmiessler.com/blog/three-powerful-safari-features-that-few-people-use">read more</a> | <a href="/apple/Three_Powerful_Safari_Features_That_Few_People_Use">digg story</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2008/03/23/three-powerful-safari-features-that-few-people-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Color Coordinating Your Website Images</title>
		<link>http://blog.websitestyle.com/index.php/2007/09/09/color-coordinating-your-website-images/</link>
		<comments>http://blog.websitestyle.com/index.php/2007/09/09/color-coordinating-your-website-images/#comments</comments>
		<pubDate>Sun, 09 Sep 2007 15:09:46 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Color]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/index.php/2007/09/09/color-coordinating-your-website-images/</guid>
		<description><![CDATA[This is a fairly useful technique when you need to include images in your website design or layout, and want them to coordinate with the rest of your design. We often have photos and drawings that we would like to use in a website design, but they just don&#8217;t quite fit in with the color [...]]]></description>
			<content:encoded><![CDATA[<p>This is a fairly useful technique when you need to include images in your website design or layout, and want them to coordinate with the rest of your design. We often have photos and drawings that we would like to use in a website design, but they just don&#8217;t quite fit in with the color scheme. The most common method of dealing with this is to play around with the color balance tool in Photoshop until it looks just about where you want it to be. I think the method I use is a little bit more accurate, and a tad less tedious.</p>
<p>Note: Unless you are really picky about how the colors in your entire site coordinate, you probably will not go to the trouble to use this for everyday photos you insert in your site, but you may find it useful for images that are integral to the site design in some way.</p>
<p>The first thing you will need is a screenshot of the web design you want the image to coordinate with. I&#8217;m going to use my old Midnight Rainforest design for this because it&#8217;s a very simple design and uses few colors (which makes it even more challenging to do this process with). If you have design that uses gradients or many colors, you will probably have it a bit easier.</p>
<p>Here&#8217;s a full screenshot of the design I want to match with:</p>
<p><a href="http://img89.imageshack.us/img89/1558/midnightrainforest4jm.jpg"><img src="http://img89.imageshack.us/img89/1558/midnightrainforest4jm.th.jpg" alt="Midnight Rainforest design screenshot." /></a></p>
<p>Now I have a couple of images (<a href="http://www.pdphoto.org/">from PDPhoto</a>) I&#8217;d like to match to this design, but the colors they use are very different from the dark greens and blacks used in the Midnight Rainforest design.</p>
<p>Crawfish:<br />
<img src="http://img403.imageshack.us/img403/9962/crawfisholdvx0.jpg" alt="Original crawfish." /></p>
<p>Hot Air Balloon:<br />
<img src="http://img204.imageshack.us/img204/2616/balloonoldez0.jpg" alt="Original hot air balloon." /></p>
<p>Here&#8217;s what they look like currently in the design.</p>
<p><img src="http://img409.imageshack.us/img409/8459/beforefixingko0.png" alt="Design with starting images." /></p>
<p>The images look fine, but I&#8217;d like to make them match the design much more. The first thing we need is that original screenshot of the design without the images.</p>
<p>We will open the screenshot in Photoshop. Then also open a window with one of our images, starting with the crawfish.</p>
<p><img src="http://img207.imageshack.us/img207/8072/psstep1mp4.jpg" alt="Two windows open in Photoshop." /></p>
<p>Make sure that you click on the image you want to change so it is the active image, as in the above image. With the image you want to change active, go to Image -> Adjustments -> Match Color&#8230;</p>
<p><img src="http://img170.imageshack.us/img170/7967/psstep2sl2.jpg" alt="Finding color match in photoshop." /></p>
<p>When you click on &#8216;Match Color&#8230;&#8217; it will bring up a dialog box with some options. Near the bottom of that dialog box, you want to use the drop-down that says &#8216;Source&#8217; and select the image you want to GET the colors from, in this case, that&#8217;s the original Midnight Rainforest screenshot image.</p>
<p><img src="http://img293.imageshack.us/img293/4516/psstep3au2.jpg" alt="Color matching dialog box." /></p>
<p>From that point, you can adjust the &#8216;Image Options&#8217; sliders (Luminance, Color Intensity, and Fade) to get it to look the way you want.</p>
<p>When you are done, click &#8216;Ok&#8217; and then save and close the crawfish image. Now you can open your next image (the balloon). Note: Leave the Midnight Rainforest screenshot open so it is an option in the source selection.</p>
<p>Repeat the process with the hot air balloon image.</p>
<p>Your new design images should now coordinate alot better with the design because they are using the colors from the design itself.</p>
<p><img src="http://img116.imageshack.us/img116/2563/afterfixingom3.jpg" alt="The new design images." /></p>
<p>Remember that the color matching works the best if you have alot of color to start with, and the starting design had only a few colors, but I think the result definitely coordinates better with the overall color scheme.</p>
<p>Again, I don&#8217;t suggest doing this for EVERY image you might put in a daily blog or often updated site unless you are extremely picky about the cohesiveness of the color in your design. I would instead suggest this be used to enhance certain commonly used pictures in standard websites.</p>
<p>A few examples where this could be used might be:</p>
<ul>
<li>A photo of a business location on a locations page.</li>
<li>A photo of employees or the site owner.</li>
<li>Graphic sets to let people link back to your site.</li>
<li>Etc&#8230;</li>
</ul>
<p>Hope this helps you out in some way!</p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2007/09/09/color-coordinating-your-website-images/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Put Important Things Last</title>
		<link>http://blog.websitestyle.com/index.php/2007/08/09/put-important-things-last/</link>
		<comments>http://blog.websitestyle.com/index.php/2007/08/09/put-important-things-last/#comments</comments>
		<pubDate>Fri, 10 Aug 2007 04:06:55 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/index.php/2007/08/09/put-important-things-last/</guid>
		<description><![CDATA[There are a lot of ways to create a tangled web within your CSS code. Using hacks are probably still at the top of the list, but a very close runner up is the use of the !important declaration within your CSS. (Of course, in a way, it&#8217;s a hack too, so I suppose it [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://img489.imageshack.us/img489/7464/importantquestionps7.gif" alt="Important - Is it really." title="Important - Is it really." class="right" /> There are a lot of ways to create a tangled web within your CSS code. Using hacks are probably still at the top of the list, but a very close runner up is the use of the !important declaration within your CSS. <em>(Of course, in a way, it&#8217;s a hack too, so I suppose it qualifies for the first.)</em></p>
<p>I have heard many people say that their site looks twitchy in different browsers &#8230; particularly in IE6 and below.</p>
<p>There are many many reasons that could happen, but when it is something as simple as color or font that is rendering differently (where most people seem to use !important), the first thing I check is whether or not there are any !important notes in the CSS.</p>
<p>I&#8217;ll tell you my suggestion right now is to avoid using !important altogether. It is so easy to end up making things more complicated with the use of it.</p>
<p>But, let&#8217;s assume that you have a site with this problem.</p>
<p>The first thing to check is WHERE you put the !important declaration.</p>
<p>Here is an example using color (not that I think you will actually do this, but it makes it easier to see):</p>
<p><code>ul#menu li a:link {background-color:olive !important; background-color:pink}<br />
ul#menu li a:visited { background-color:green;}<br />
ul#menu li a:hover {background-color:red}</code></p>
<p>Don&#8217;t laugh! If you don&#8217;t do this, count yourself lucky because I have seen many people create CSS rules with duplicate properties with different values. It&#8217;s crazy, but it&#8217;s also easy to get caught up in the fixing.</p>
<p>Okay, back to the code. Theoretically, it should do a few things:</p>
<ul>
<li>Unvisited links should have an olive background.</li>
<li>Visited links should have a green background.</li>
<li>And both should have a red background on hover.</li>
</ul>
<p>Does it work? Of course not.</p>
<p>On Firefox, Opera, Safari, and IE7:<br />
<img src="http://img48.imageshack.us/img48/421/ffimportantzp9.gif" alt="Firefox rendering with important." /></p>
<p>On IE6 and Lower:<br />
<img src="http://img187.imageshack.us/img187/4543/ie6important2xg3.gif" alt="IE6 and lower rendering." /></p>
<p>Fascinating isn&#8217;t it? Of course, the quirky part is that IE6 and lower do the hover affect on both links (as it should), but all the others only do the red hover background on the visited link. Of course, a bigger problem at the moment is that &lt;= IE6 are showing the unvisited link as pink. Well, now, let&#8217;s try to see what you could start doing to fix it.</p>
<p>You could try the first technique most people try which is that you should always put your properties with an !important declaration at the end of the rule line to make them work with IE6 and lower.</p>
<p>So, we change the code and put the !important at the end:</p>
<p><code>ul#menu li a:link { background-color:pink; <strong>background-color:olive !important;</strong>}<br />
ul#menu li a:visited { background-color:green;}<br />
ul#menu li a:hover {background-color:red}</code></p>
<p>Now it&#8217;s a little better.</p>
<p>On All:<br />
<img src="http://img48.imageshack.us/img48/421/ffimportantzp9.gif" alt="Firefox rendering with important." /></p>
<p>But that hover still doesn&#8217;t work correctly. There is a hover affect to red ONLY on the visited link still, and now IE6 isn&#8217;t doing the hover on the unvisited link (like it was earlier) &#8211; it&#8217;s only on the visited just like everyone else.</p>
<p>So, obviously this is a problem, and the first thing that people tend to do when they see this is try making the hover important too!</p>
<p>Change the code to:</p>
<p><code>ul#menu li a:link { background-color:pink; background-color:olive !important;}<br />
ul#menu li a:visited { background-color:green;}<br />
ul#menu li a:hover {background-color:red <strong>!important</strong>;}</code></p>
<p>Did this fix it? Yep. Now all of them render the hover also and show as they should.</p>
<p>Was it worth it?</p>
<p>In my opinion, this is much easier and works perfectly:</p>
<p><code>ul#menu li a:link { background-color:olive;}<br />
ul#menu li a:visited { background-color:green;}<br />
ul#menu li a:hover {background-color:red;}</code></p>
<p>But in order for that to work you need to avoid !important. You would have to clear out any duplicate property/value pairs that might be causing you to set something as !important.</p>
<p>Suggestions in Summary:</p>
<ul>
<li>If you are going to use !important in your CSS &#8211; make it a last resort.</li>
<li>If you end up using !important &#8211; remember to put it last in the rule for &lt;= IE6.</li>
<li>Try cleaning your code instead.</li>
</ul>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2007/08/09/put-important-things-last/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Customize an iPhone Background</title>
		<link>http://blog.websitestyle.com/index.php/2007/07/21/how-to-customize-an-iphone-background/</link>
		<comments>http://blog.websitestyle.com/index.php/2007/07/21/how-to-customize-an-iphone-background/#comments</comments>
		<pubDate>Sat, 21 Jul 2007 21:50:43 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/index.php/2007/07/21/how-to-customize-an-iphone-background/</guid>
		<description><![CDATA[Definitely doesn&#8217;t seem easy, but there is a tutorial from ModMyiPhone that shows you how. Hopefully, there will be much more simple approaches in the future. ~Nicole]]></description>
			<content:encoded><![CDATA[<p>Definitely doesn&#8217;t seem easy, but there is <a href="http://www.modmyiphone.com/wiki/index.php/Custom_iPhone_Background">a tutorial from ModMyiPhone</a> that shows you how.</p>
<p>Hopefully, there will be much more simple approaches in the future.</p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2007/07/21/how-to-customize-an-iphone-background/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Graphical Horizontal Menus with CSS &#8211; Step 2</title>
		<link>http://blog.websitestyle.com/index.php/2007/06/04/graphical-horizontal-menus-with-css-step-2/</link>
		<comments>http://blog.websitestyle.com/index.php/2007/06/04/graphical-horizontal-menus-with-css-step-2/#comments</comments>
		<pubDate>Mon, 04 Jun 2007 22:46:48 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/index.php/2007/06/04/graphical-horizontal-menus-with-css-step-2/</guid>
		<description><![CDATA[If you have followed along through Step 1, then you have the HorizMenu.psd file to continue with. To refresh your memory, we left off with our HorizMenu looking like this: Now, you may be wondering why that extra space is there at the bottom. Why we didn&#8217;t simply crop all the bottom off. The answer [...]]]></description>
			<content:encoded><![CDATA[<p>If you have followed along through <a href="http://blog.websitestyle.com/index.php/2007/05/29/graphical-horizontal-menus-with-css-step-1/">Step 1</a>, then you have the HorizMenu.psd file to continue with. To refresh your memory, we left off with our HorizMenu looking like this:</p>
<p><a href="http://img504.imageshack.us/img504/3787/menu8ga2.jpg"><img src="http://img504.imageshack.us/img504/3787/menu8ga2.th.jpg" alt="Horiz Menu in progress." /></a></p>
<p>Now, you may be wondering why that extra space is there at the bottom. Why we didn&#8217;t simply crop all the bottom off. The answer is that we want to see where the sub-menu comes in. This could be positioned differently if we were using a repeatable background on the menu bar, but since we aren&#8217;t, and in this fixed width design the text is influenced by the menu and the background, we have to work with what we have and be precise.</p>
<p>Open up your HorizMenu.psd (if you don&#8217;t have this file, <a href="http://www.mediafire.com/?fzroymmxbq1">click here</a> to get it).</p>
<p>Using your slice tool, create three box slices dividing up that menu, and a fourth that is the bottom area. If you simply create boxes around the menu items, the fourth area will create itself. Make sure you are precise, and as you can see I&#8217;ve tried to center the submenu in the &#8216;About&#8217; area.</p>
<p><a href="http://img526.imageshack.us/img526/985/menu9vm5.jpg"><img src="http://img526.imageshack.us/img526/985/menu9vm5.th.jpg" alt="Menu sliced." /></a></p>
<p>Now that you have the menu sliced, you can crop out that bottom area.</p>
<p><a href="http://img508.imageshack.us/img508/377/menu10fh4.jpg"><img src="http://img508.imageshack.us/img508/377/menu10fh4.th.jpg" alt="Menu sliced and cropping." /></a></p>
<p>After you&#8217;ve cropped the HorizMenu.psd to consist of only the menu items, then go ahead and save the PSD. </p>
<p>From this point, we&#8217;re going to save the slices as individual files.<br />
<code>File -> Save For Web...</code></p>
<p>I suggest looking at the 2-Up or 4-Up tabs to really compare what you want to save your images as without sacrificing quality. I&#8217;ve chosen to save these as JPEG with 60 quality, as shown here:</p>
<p><a href="http://img510.imageshack.us/img510/939/menu11an9.jpg"><img src="http://img510.imageshack.us/img510/939/menu11an9.th.jpg" alt="Menu being saved at 60 quality jpeg for web." /></a></p>
<p>Simply click on the area showing the one you like the most, then click the &#8216;Save&#8217; button.</p>
<p>Another box will pop up as shown:</p>
<p><a href="http://img366.imageshack.us/img366/4306/menu12kv1.jpg"><img src="http://img366.imageshack.us/img366/4306/menu12kv1.th.jpg" alt="Saving images properly as slices." /></a></p>
<p>Make sure that your selections in the drop down boxes are saving the images only, and as slices.</p>
<p>When you have saved them, check in the area you saved them to. You should see a folder with three new image files, each numbered and prefaced by what ever you put in the File Name box (in my case, HorizMenu). </p>
<p>If you don&#8217;t have these three files, or think you might have messed up somewhere, you can <a href="http://www.mediafire.com/?7ldksnrn92g">download them here</a> to follow along on the next step.</p>
<p>That&#8217;s enough for now, and thankfully we won&#8217;t be touching Photoshop for a little while at least. I know, I know, most people don&#8217;t think that people who code websites deal with the graphic art software &#8211; but they end up quickly disabused of that notion. Even if you aren&#8217;t a graphic artist, if you put sites together, you need to learn how to work with the kinds of files that a graphic artist provides to you. After who knows, after a while&#8230; you might find yourself creating mockups in Photoshop just to do random tutorials <img src='http://blog.websitestyle.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The next step is coming soon!</p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2007/06/04/graphical-horizontal-menus-with-css-step-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Graphical Horizontal Menus with CSS &#8211; Step 1</title>
		<link>http://blog.websitestyle.com/index.php/2007/05/29/graphical-horizontal-menus-with-css-step-1/</link>
		<comments>http://blog.websitestyle.com/index.php/2007/05/29/graphical-horizontal-menus-with-css-step-1/#comments</comments>
		<pubDate>Wed, 30 May 2007 02:36:00 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/index.php/2007/05/29/graphical-horizontal-menus-with-css-step-1/</guid>
		<description><![CDATA[One of my least favorite things in web design are all graphical css menus. I utterly despise them, and the reasons are endless. Depending on what is involved, they can be a real pain to make accessible at times. They tend to require a strong foundation in CSS or a significant learning curve. By their [...]]]></description>
			<content:encoded><![CDATA[<p>One of my least favorite things in web design are all graphical css menus. I utterly despise them, and the reasons are endless. </p>
<ul>
<li>Depending on what is involved, they can be a real pain to make accessible at times.</li>
<li>They tend to require a strong foundation in CSS or a significant learning curve.</li>
<li>By their image based nature alone they are going to bloat the page size and drop loading speed.</li>
<li>They most often are found attached to a design concept that is already heavily graphical and already has a huge loading time.</li>
<li>I dislike dealing with designs whereby a client is so set on having a specific font that they are willing to sacrifice an extreme amount of loading time to have it.</li>
</ul>
<p>These kind of things fall into my category of &#8211; <em>&#8216;the prettiest websites no one ever saw&#8217;</em> (meaning that they are beautiful works of art, but they take so long to load that no one sticks around to see it).</p>
<p><strong>All that aside &#8211; you might some day decide to make one for a client, and it is in your best interest to know how.</strong></p>
<p>Herein, you&#8217;ll find Step 1 of a tutorial on exactly how I create graphical horizontal menus. People vary in methods, and hopefully you&#8217;ll find your own way to do it.</p>
<p>In fact, this tutorial is going to show you one of the worst kind of graphical horizontal menus. A &#8216;worst case scenario&#8217; sort of tutorial. The menu we are dealing with will be:</p>
<ul>
<li>Used in a fixed width design.</li>
<li>On a heavily graphical site.</li>
<li>Mildly transparent to the background of the page.</li>
<li>Include separate &#8216;on&#8217; and &#8216;off&#8217; rollover images on the main menu.</li>
<li>Include a sub-menu that is also somewhat transparent.</li>
<li>Include a sub-menu that is entirely graphical and has separate &#8216;on&#8217; and &#8216;off&#8217; rollover images.</li>
<li>All custom fonts used.</li>
<li><strong>Important Note:</strong> The menus must be accessible. The images need to be background images. No Javascript for drop-downs.</li>
<li>We&#8217;ll have to do a unique solution for IE6 and lower.</li>
</ul>
<p>Sound like fun? Well, either way, let&#8217;s get going.</p>
<p>I created a little mockup in Photoshop of a menu design we&#8217;re going to use. I&#8217;m not going to teach you how to do the rest of the layout. Only the menu. You will need to have access to Photoshop or Gimp for this sort of project, or you will need to have all the individual images given to you by your client ahead of time. You can <a href="http://www.mediafire.com/?bj5nduejhhh">download the PSD</a> of the mockup if you want to follow along.</p>
<p><a href="http://img516.imageshack.us/img516/5600/menu1mq3.jpg"><img src="http://img516.imageshack.us/img516/5600/menu1mq3.th.jpg" alt="Original Mockup." /></a></p>
<p>Stop here and take a good look at the menu, then try to anticipate what elements might be problematic. It&#8217;s always a good idea when starting a new project to look for potential pitfalls so you can work out solutions ahead of time.</p>
<p>If you&#8217;re lucky, the graphic designer (or yourself) has labeled all the image layers in your graphics program really well. If you are making this yourself, you probably know how easy it is to get lost in your own design layers. If you get a poorly labeled one, go in and fix the labels so that it can be easily understood. You&#8217;ll save yourself time in the long run because good labeling is essential.</p>
<p>Okay, first things first &#8211; we have to get this menu ready to be used. </p>
<p>Go through your layers in Photoshop, and toggle the visibility (the eye graphic on/off) until all of your top level menu links are in the &#8216;off&#8217; position.</p>
<p><a href="http://img504.imageshack.us/img504/3059/togglealloffaj3.jpg"><img src="http://img504.imageshack.us/img504/3059/togglealloffaj3.th.jpg" alt="Initially toggle all image links to off." /></a></p>
<p>Let&#8217;s select the menu portion of this design, like so:</p>
<p><a href="http://img405.imageshack.us/img405/2199/menu2el6.jpg"><img src="http://img405.imageshack.us/img405/2199/menu2el6.th.jpg" alt="Select toggled area." /></a></p>
<p>Don&#8217;t worry about selecting the menu perfectly yet. With this section selected, in Photoshop do:<br />
<code>Edit -> Copy Merged</code><br />
Then:<br />
<code>File -> New -> OK -> Paste</code><br />
You should now have a new untitled window popped up that just shows the menu area.</p>
<p><a href="http://img443.imageshack.us/img443/792/menu3gu7.jpg"><img src="http://img443.imageshack.us/img443/792/menu3gu7.th.jpg" alt="Make a new image with the selected area." /></a></p>
<p>Now, grabbing your new Untitled window by the title bar, move it off to a corner for now, and bring the full design to the front by clicking on its title bar. We&#8217;re now going to go back to our layers and switch all of the menu names to &#8216;on&#8217; instead of &#8216;off.&#8217;</p>
<p><a href="http://img293.imageshack.us/img293/2351/menu4cl9.jpg"><img src="http://img293.imageshack.us/img293/2351/menu4cl9.th.jpg" alt="Toggle all menu items to on." /></a></p>
<p>With this section selected, in Photoshop do:<br />
<code>Edit -> Copy Merged</code><br />
Then:<br />
<code>File -> New -> OK -> Paste</code><br />
You should now have a Second untitled window popped up that just shows the menu area.</p>
<p>At this point, you can close your large image PSD (for the time being at least) and work just on your pieces of the menu for a bit.</p>
<p>Stack your untitled images so that you can see them well. Then go to your first Untitled image (should be currently named Untitled-1), and try to carefully select only the green menu area rectangle. Then go to:<br />
<code>Image -> Crop</code></p>
<p><a href="http://img502.imageshack.us/img502/149/menu5mg8.jpg"><img src="http://img502.imageshack.us/img502/149/menu5mg8.th.jpg" alt="Cropping the first menu." /></a></p>
<p>There is a crop tool, but I feel this method is a bit more forgiving. Work with whichever you are most comfortable. You may have to do a couple of passes at this to get it cropped perfectly. You want only the green leafy rectangle and the links on it for this one. We&#8217;ll do the second one a bit different, so don&#8217;t jump ahead <img src='http://blog.websitestyle.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Go to Untitled-2, and select all but the bottom portion below the green horizontal bar. You want to still be able to see where the sub-menu needs to come in from.</p>
<p>Then crop the image just as you did the previous one, until your images look like this:</p>
<p><a href="http://img502.imageshack.us/img502/8490/menu6vv5.jpg"><img src="http://img502.imageshack.us/img502/8490/menu6vv5.th.jpg" alt="Both menus cropped." /></a></p>
<p>Right click on the title bar of the second image, and click on Image Size. Jot down the height in pixels for this image. In this example, the height is 58 pixels.</p>
<p>Then click on the first untitled window to select it, and do:<br />
<code>Image -> Canvas Size</code></p>
<p>This will bring up a pop-up window. Toggle the height and width to show the values in pixels, and in the box with arrows you want to click the middle arrow in the top row. That will pin the canvas up by the middle top. Now you want to add some canvas space, just enough for our second image. That means we need 58 extra pixels in height.</p>
<p>My Untitled-1 original is 46 pixels in height, so I want to change that number to 104 pixels. Then click OK.</p>
<p><a href="http://img175.imageshack.us/img175/8857/menu7ji6.jpg"><img src="http://img175.imageshack.us/img175/8857/menu7ji6.th.jpg" alt="Increasing canvas height." /></a></p>
<p>Your canvas should be expanded now by that additional 58 pixels, and they should be only on the bottom portion. Now you can go ahead and select the entire of Untitled-2, then:<br />
<code>Edit -> Copy</code><br />
Click on Untitled-1, and:<br />
<code>Edit -> Paste</code><br />
Move your new section around in there until it&#8217;s just perfectly below the top one.</p>
<p><a href="http://img504.imageshack.us/img504/3787/menu8ga2.jpg"><img src="http://img504.imageshack.us/img504/3787/menu8ga2.th.jpg" alt="Joined Menu." /></a></p>
<p>You can now close (don&#8217;t need to save) the Untitled-2. All we need now is the joined menu. Then go save that menu (as a PSD) with a name you can recognize. I&#8217;m very simply calling mine, HorizMenu.psd.</p>
<p>Alternately, you can download my <a href="http://www.mediafire.com/?fzroymmxbq1">HorizMenu.psd</a> file.</p>
<p>If you&#8217;ve ever worked with combined graphics, you might have an idea where we&#8217;re going with this. Either way&#8230; that&#8217;s enough for one sitting.</p>
<p><a href="http://blog.websitestyle.com/index.php/2007/06/04/graphical-horizontal-menus-with-css-step-2/">Keep Going &#8211; Step 2 is HERE.</a></p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2007/05/29/graphical-horizontal-menus-with-css-step-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress How To &#8211; Exclude Categories from a Feed</title>
		<link>http://blog.websitestyle.com/index.php/2006/11/02/wordpress-how-to-exclude-categories-from-a-feed/</link>
		<comments>http://blog.websitestyle.com/index.php/2006/11/02/wordpress-how-to-exclude-categories-from-a-feed/#comments</comments>
		<pubDate>Fri, 03 Nov 2006 05:44:16 +0000</pubDate>
		<dc:creator>Nicole</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.websitestyle.com/?p=169</guid>
		<description><![CDATA[One of the best aspects of WordPress is that it gives you remarkable control over your feeds, allowing you to pick and choose what you would like to display and in what way. Granted, that applies to WordPress in general, but it is infinitely useful for the feeds your system creates. For instance, if I [...]]]></description>
			<content:encoded><![CDATA[<p>One of the best aspects of WordPress is that it gives you remarkable control over your feeds, allowing you to pick and choose what you would like to display and in what way. Granted, that applies to WordPress in general, but it is infinitely useful for the feeds your system creates.</p>
<p>For instance, if I want to merely show one category in a feed, I would link to feed for that single category. A feed that would only show the reviews of the site is very simple to achive. You go the page main category page (in this example the category is &#8216;reviews&#8217;) and then you add a forward slash (/) and the word &#8216;feed&#8217;. Like this:</p>
<p>http://blog.websitestyle.com/index.php/category/reviews/feed/</p>
<p>However, if you wanted to exclude that category, then you would need to know the number of the category. That is simple enough to find. You would go to your &#8216;manage&#8217; tab, then click on &#8216;categories&#8217;. Scan down your category list, and you&#8217;ll find the number of the category in the associated &#8216;ID&#8217; column. So now, for the above example, my &#8216;reviews&#8217; category has an &#8216;ID&#8217; of 18.</p>
<p>Now each WordPress blog has a feed URL that will display ALL posts from the blog regardless of category. It looks like this:</p>
<p>http://blog.websitestyle.com/index.php?feed=rss2</p>
<p>To exclude all posts in the &#8216;reviews&#8217; category, you would instead using the following adjustment to your normal feed link:</p>
<p>http://blog.websitestyle.com/index.php?feed=rss2<span style="font-weight:bold;text-decoration:underline;">&#038;cat=-18</span></p>
<p>And now you have a link to a feed that shows all my categories EXCEPT for those in the &#8216;reviews&#8217; section.</p>
<p>Ah, but what if you want to exclude more than one category? What&#8217;s the syntax?</p>
<p>You simply add each one to exclude like this:<br />
<strong>This Section Updated</strong><br />
WP Versions Before 2.3.1:<br />
http://blog.websitestyle.com/index.php?feed=rss2<span style="font-weight:bold;text-decoration:underline;">&#038;cat=-18&#038;cat=-22</span><br />
For Version 2.3.1+:<br />
http://blog.websitestyle.com/index.php?feed=rss2<span style="font-weight:bold;text-decoration:underline;">&#038;cat=-18,cat=-22</span></p>
<p>The above would exclude both my &#8216;reviews&#8217; and &#8216;templates&#8217; categories. I actually use this when I embed my blog feed in another website that is purely tech (nothing personal included), and I exclude things I&#8217;ve categorized as non-tech related so they don&#8217;t show up.</p>
<p>Hope this was helpful to someone out there.</p>
<p>~Nicole</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websitestyle.com/index.php/2006/11/02/wordpress-how-to-exclude-categories-from-a-feed/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>

