<?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>JohnTP.com &#187; Web Design</title>
	<atom:link href="http://www.johntp.com/category/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johntp.com</link>
	<description>Blog Tips To Help You Make Money Online</description>
	<lastBuildDate>Fri, 13 Aug 2010 07:16:03 +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>CSS Optimization</title>
		<link>http://www.johntp.com/2006/08/21/css-optimization/</link>
		<comments>http://www.johntp.com/2006/08/21/css-optimization/#comments</comments>
		<pubDate>Mon, 21 Aug 2006 18:24:20 +0000</pubDate>
		<dc:creator>JohnTP</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.johntp.com/2006/08/21/css-optimization/</guid>
		<description><![CDATA[Blogging Pro has an interesting analysis on various CSS Optimization tools that are helpful in making your site load faster. The tools tested are CSS Optimizer, Icey’s CSS Compressor, Flumpcakes CSS Optimiser, and CleanCSS out of which the winner is Icey’s CSS Compressor. I tried Icey’s CSS Compressor and got my CSS compressed by 45%. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bloggingpro.com/archives/2006/08/17/css-optimization/">Blogging Pro</a> has an interesting analysis on various CSS Optimization tools that are helpful in making your site load faster. The tools tested are <a href="http://www.cssoptimiser.com/">CSS Optimizer</a>, <a href="http://iceyboard.no-ip.org/projects/css_compressor">Icey’s CSS Compressor</a>, <a href="http://flumpcakes.co.uk/css/optimiser/">Flumpcakes CSS Optimiser</a>, and <a href="http://www.cleancss.com/">CleanCSS</a> out of which the winner is   <a href="http://iceyboard.no-ip.org/projects/css_compressor">Icey’s CSS Compressor</a>.</p>
<p>I tried Icey’s CSS Compressor and got my CSS compressed by 45%. But when I tested it here, I found the layout completely broken.</p>
<p>So for me the winner is <a href="http://www.csstweak.com">CSS Tweak</a>, which works perfectly even though it compresses my CSS only by 30%.</p>
<p>Which CSS Optimizer works best for you?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johntp.com/2006/08/21/css-optimization/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>K2 Date Stamp 1.1</title>
		<link>http://www.johntp.com/2006/07/30/k2-date-stamp-11/</link>
		<comments>http://www.johntp.com/2006/07/30/k2-date-stamp-11/#comments</comments>
		<pubDate>Sun, 30 Jul 2006 06:20:08 +0000</pubDate>
		<dc:creator>JohnTP</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.johntp.com/2006/07/30/k2-date-stamp-11/</guid>
		<description><![CDATA[Yesterday I modified my post dates to look like this: This is a Mod by Steve and he has provided excellent instructions on how to do it for K2 r167 and it&#8217;s nightly builds here. One of the reasons I applied this Mod to my current design is that I feel the date stamp makes [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I modified my post dates to look like this:</p>
<p><center><img src="http://static.flickr.com/50/140528126_f6a22d10ca_o.jpg" alt="k2 date stamp" /></center></p>
<p>This is a Mod by <a href="http://stevelam.org">Steve</a> and he has provided excellent instructions on how to do it for <a href="http://www.getk2.com">K2</a> r167 and it&#8217;s nightly builds <a href="http://stevelam.org/2006/04/k2-date-stamp/">here</a>. </p>
<p>One of the reasons I applied this Mod to my <a href="http://www.johntp.com/2006/06/08/introducing-contentwise-k2-scheme/">current design</a> is that I feel the date stamp makes each post stand out. </p>
<p>Those of you interested in K2&#8242;s Live Search feature can try out Steve&#8217;s <a href="http://stevelam.org/2006/04/k2-live-search-mod/">K2 Live Search Mod</a>. I haven&#8217;t tried the Live Search Mod yet as I have disabled all Live features from my K2 blog to decrease page load time.</p>
<p>Have a nice time modifying K2 <img src='http://www.johntp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.johntp.com/2006/07/30/k2-date-stamp-11/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The majority of web surfers use 1024&#215;768</title>
		<link>http://www.johntp.com/2006/06/26/the-majority-of-web-surfers-use-1024x768/</link>
		<comments>http://www.johntp.com/2006/06/26/the-majority-of-web-surfers-use-1024x768/#comments</comments>
		<pubDate>Mon, 26 Jun 2006 02:19:28 +0000</pubDate>
		<dc:creator>JohnTP</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.johntp.com/2006/06/26/the-majority-of-web-surfers-use-1024x768/</guid>
		<description><![CDATA[The screen resolution 800 x 600 pixels has signficantly decreased since July 2005. More and more internet users choose for screen resolution 1024 x 768 or higher. The finding has important implications for web site designers because most web sites are designed for a screen resolution of 800 x 600 pixels. 1280&#215;1024 is #2 in [...]]]></description>
			<content:encoded><![CDATA[<p>The screen resolution 800 x 600 pixels has signficantly decreased since July 2005. More and more internet users choose for screen resolution 1024 x 768 or higher. The finding has important implications for web site designers because most web sites are designed for a screen resolution of 800 x 600 pixels. 1280&#215;1024 is #2 in the world.</p>
<p>According to my <a href="http://www.google.com/analytics/">Google Analytics</a> stats, most of the visitors here are also on 1024&#215;768. Actually, I think it&#8217;s good news because I don&#8217;t think my current 3 column theme would display well on resolutions of 800&#215;600 or below.</p>
<p>via <a href="http://www.onestat.com/html/aboutus_pressbox43-screen-resolutions.html">OneStat</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.johntp.com/2006/06/26/the-majority-of-web-surfers-use-1024x768/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to create a custom K2 Scheme: Part 4</title>
		<link>http://www.johntp.com/2006/06/19/how-to-create-a-custom-k2-scheme-part-4/</link>
		<comments>http://www.johntp.com/2006/06/19/how-to-create-a-custom-k2-scheme-part-4/#comments</comments>
		<pubDate>Mon, 19 Jun 2006 02:35:29 +0000</pubDate>
		<dc:creator>JohnTP</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.johntp.com/2006/06/19/how-to-create-a-custom-k2-scheme-part-4/</guid>
		<description><![CDATA[Today let us look on how to make your blog&#8217;s visitors read your old posts by customizing K2. Check out Part 1, Part 2 and Part 3 before reading this. Calendar I have not seen the Calendar being used on much K2 blogs. It is simply because K2 does not include it by default. I [...]]]></description>
			<content:encoded><![CDATA[<p>Today let us look on how to make your blog&#8217;s visitors read your old posts by customizing K2. </p>
<p>Check out <a href="http://www.johntp.com/2006/06/09/how-to-create-a-custom-k2-scheme-part-1/">Part 1</a>, <a href="http://www.johntp.com/2006/06/10/how-to-create-a-custom-k2-scheme-part-2/">Part 2</a> and <a href="http://www.johntp.com/2006/06/11/how-to-create-a-custom-k2-scheme-part-3/">Part 3</a> before reading this.</p>
<p><span id="more-296"></span></p>
<p><strong>Calendar</strong></p>
<p>I have not seen the Calendar being used on much K2 blogs. It is simply because K2 does not include it by default. I think that Calendars can be very useful in helping your readers dig through your archives. </p>
<p>You can put the Calendar on your blog&#8217;s sidebar with the following code</p>
<p><code>&lt;?php get_calendar() ?&gt;</code></p>
<p>You might not like the default look of the calendar. You can stylize it with the following CSS</p>
<p><code>#wp-calendar {<br />
	width:160px; //width of calendar<br />
	text-align:center;<br />
	border-collapse: collapse;<br />
      background:#f5f9fd;<br />
}<br />
#wp-calendar caption, #wp-calendar th {<br />
	background:#e0eaf5;<br />
	color:#666;<br />
	padding:2px;<br />
}<br />
#wp-calendar caption {<br />
	font-weight:bold;<br />
	background:#8db6de;<br />
      color:#fff;<br />
}<br />
#wp-calendar #today { /* highlights the current day */<br />
	background:#8db6de;<br />
	font-weight:bold;<br />
	color:#fff;<br />
}<br />
#wp-calendar a {<br />
	color:#3388CC;<br />
	text-decoration:underline;<br />
}<br />
#wp-calendar a:hover {<br />
	background:#96c1eb;<br />
      color:#fff;<br />
	text-decoration:none;<br />
}	</code></p>
<p><strong>Category</strong></p>
<p>After moving Categories to all pages on my blog, I noticed that my old posts were being viewed more often. You can put the Categories on all pages of your blog with this code</p>
<p><code>&lt;div&gt;&lt;h2&gt;Categories&lt;/h2&gt;<br />
		&lt;ul&gt;<br />
			&lt;?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?&gt;<br />
		&lt;/ul&gt;<br />
	&lt;/div&gt;</code></p>
<p><strong>Archives</strong></p>
<p>This will help your readers to dig deep into your archives.</p>
<p><code>&lt;div&gt;<br />
		&lt;h2&gt;&lt;?php _e('Archives','k2_domain'); ?&gt;&lt;/h2&gt;<br />
		&lt;ul&gt;<br />
			&lt;?php wp_get_archives('type=monthly'); ?&gt;<br />
		&lt;/ul&gt;<br />
	&lt;/div&gt;</code>	</p>
<p><strong>Noteworthy</strong></p>
<p>Noteworthy is a WordPress plugin with which you can mark important posts that you want your readers to read. The plugin adds an icon of a heart near every post  you mark. </p>
<p>The good news is that K2 supports this plugin and so the only thing you need to do to use this plugin is upload and activate.</p>
<p>Noteworthy also adds a Category called &#8216;Noteworthy&#8217; onto which it puts all the posts you mark. This can be useful for your readers as they no longer have to search for the important posts, all they have to do is go to the &#8216;Noteworthy&#8217; Category.</p>
<p class="download"><a href="http://webdeveloper.uk.com/noteworthy">Download Noteworthy</a></p>
<p>I have added the Noteworthy plugin to the <a href="http://www.johntp.com/2006/04/06/wordpress-plugins/">WordPress Plugins</a> page.</p>
<p>Also check out <a href="http://www.johntp.com/2006/06/09/how-to-create-a-custom-k2-scheme-part-1/">Part 1</a>, <a href="http://www.johntp.com/2006/06/10/how-to-create-a-custom-k2-scheme-part-2/">Part 2</a> and <a href="http://www.johntp.com/2006/06/11/how-to-create-a-custom-k2-scheme-part-3/">Part 3</a> </p>
<p>If you liked this tutorial please bookmark it in <a href="http://del.icio.us/post?url=http://www.johntp.com/2006/06/19/how-to-create-a-custom-k2-scheme-part-4/&#038;title=How+to+create+a+custom+K2+Scheme%3A+Part+4">Del.icio.us</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.johntp.com/2006/06/19/how-to-create-a-custom-k2-scheme-part-4/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to create a custom K2 Scheme: Part 3</title>
		<link>http://www.johntp.com/2006/06/11/how-to-create-a-custom-k2-scheme-part-3/</link>
		<comments>http://www.johntp.com/2006/06/11/how-to-create-a-custom-k2-scheme-part-3/#comments</comments>
		<pubDate>Sun, 11 Jun 2006 17:37:08 +0000</pubDate>
		<dc:creator>JohnTP</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.johntp.com/2006/06/11/how-to-create-a-custom-k2-scheme-part-3/</guid>
		<description><![CDATA[Yesterday I explained on Menus and how to customize them. Today let&#8217;s take a look at a few more things. You may want to read Part 1 and Part 2 before continuing. Code Box The way the default codes (&#60;code&#62;&#60;/code&#62;) are shown are ugly if you ask me. You may want to stylize it a [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I explained on Menus and how to customize them. Today let&#8217;s take a look at a few more things. You may want to read <a href="http://www.johntp.com/2006/06/09/how-to-create-a-custom-k2-scheme-part-1/">Part 1</a> and <a href="http://www.johntp.com/2006/06/10/how-to-create-a-custom-k2-scheme-part-2/">Part 2</a> before continuing. </p>
<p><span id="more-282"></span></p>
<p><strong>Code Box</strong></p>
<p>The way the default codes (<em>&lt;code&gt;&lt;/code&gt;</em>) are shown are ugly if you ask me. You may want to stylize it a bit. With the following code you can get the code box like I have.</p>
<p><code>code {<br />
	font: 1.1em 'Courier New', Courier, Fixed;<br />
      display:block;<br />
      overflow:auto;<br />
      text-align:left;<br />
      background:#fff;<br />
      border:1px solid #A6B0BF;<br />
      border-left: 6px solid #6395b0;<br />
      padding: 4px;<br />
     }<br />
</code></p>
<p><strong>Author Comments</strong></p>
<p>A default grey color highlights Author Comments. If you want your readers to find your comments easily you can change the looks. Here is the code I have used.</p>
<p><code>.comments #commentlist li.authorcomment {<br />
background: #ECF4FD !important;<br />
_background: #ECF4FD !important;<br />
border-top: 2px solid #3388CC !important;<br />
border-bottom: 2px solid #3388CC !important;<br />
}</code></p>
<p>Modify the above code to match your blog.</p>
<p><strong>Alert</strong></p>
<p>Alert is a good way to put up important messages that you want your readers to notice. The default alert looks like this</p>
<p class="alert">This is an alert</p>
<p>The following code can be used to get the default alert. </p>
<p><code>&lt;p class="alert"&gt;Put your text here&lt;/p&gt;</code></p>
<p><strong>Alert CSS</strong></p>
<p>The CSS of the default alert is as follows</p>
<p><code>.alert {<br />
	background: #FFF6BF;<br />
	border-top: 2px solid #FFD324;<br />
	border-bottom: 2px solid #FFD324;<br />
	text-align: center;<br />
	margin: 10px auto;<br />
	padding: 5px 20px;<br />
	}</code></p>
<p>You may customize the above CSS to add a background image to the Alert</p>
<p><code>.alert {<br />
      background: #FFF6BF url('images/exclamation.png')no-repeat 15px;<br />
	border-top: 2px solid #FFD324;<br />
	border-bottom: 2px solid #FFD324;<br />
	text-align: center;<br />
      margin: 10px auto;<br />
	padding: 5px 20px;<br />
      padding-left: 40px;<br />
	}</code></p>
<p>Examples:</p>
<p class="exclamation">This alert has a background image</p>
<p class="download">Download TechnoBlue</p>
<p>You can download the above icons from <a href="http://www.famfamfam.com/lab/icons/silk">FamFamFam</a> and upload them to your images directory.</p>
<p><strong>PNG Icons</strong></p>
<p>K2 uses lovely png icons from <a href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> called Silk Icons. If you check your blog in Internet Explorer, you will find that these icons look ackward. This is because transparent pngs don&#8217;t work well in IE. The solution here is to convert all the png icons you use to Gif format.</p>
<p>You can find more detailed K2 customizations in <a href="http://paulstamatiou.com/2005/12/28/customizing-k2-part-1/">Paul&#8217;s Blog</a></p>
<p>Also check out <a href="http://www.johntp.com/2006/06/19/how-to-create-a-custom-k2-scheme-part-4/">Part 4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.johntp.com/2006/06/11/how-to-create-a-custom-k2-scheme-part-3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to create a custom K2 Scheme: Part 2</title>
		<link>http://www.johntp.com/2006/06/10/how-to-create-a-custom-k2-scheme-part-2/</link>
		<comments>http://www.johntp.com/2006/06/10/how-to-create-a-custom-k2-scheme-part-2/#comments</comments>
		<pubDate>Sat, 10 Jun 2006 07:48:35 +0000</pubDate>
		<dc:creator>JohnTP</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.johntp.com/2006/06/10/how-to-create-a-custom-k2-scheme-part-2/</guid>
		<description><![CDATA[Yesterday I explained on how to customize the body, page, header and footer. Today I shall cover on how to customize the main menu of your K2 blog. If you have missed the first part of this series, please read that before you continue. Main menu The main menu can be customized in many ways, [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I explained on how to customize the body, page, header and footer. Today I shall cover on how to customize the main menu of your K2 blog. If you have missed the <a href="http://www.johntp.com/2006/06/09/how-to-create-a-custom-k2-scheme-part-1/">first part</a> of this series, please read that before you continue.</p>
<p><span id="more-281"></span></p>
<p><strong>Main menu</strong></p>
<p>The main menu can be customized in many ways, the default being the horizontal tabs below the header. You can customize it to be above the header, on the sidebar or you could just change the tabs to some thing more better. After learning CSS, you will be able to use these ideas to create your own unique look.</p>
<p><strong>Menu above the Header</strong></p>
<p><code>ul.menu {<br />
margin-bottom: 12px;<br />
padding-left: 10px;<br />
width: 90% !important;<br />
word-spacing: 0;<br />
}</code></p>
<p>In the above code,</p>
<p>Increase the value of <em>margin-bottom</em> until you get the menu to reach above header </p>
<p><em>padding-left</em> lets you move the menu away from the default left side</p>
<p><em>width</em> lets you control the spacing between the links in the menu</p>
<p><em>word-spacing</em> lets you control the space between the words</p>
<p>You can adjust the font-size and default color of Menu links with this code</p>
<p><code>ul.menu li a {<br />
font: 1em Verdana, Helvetica, Arial, Sans-Serif;<br />
color: #ffffff;<br />
font-weight: bold;<br />
}</code></p>
<p>With the following code you can change the hover properties of the menu</p>
<p><code>ul.menu li a:hover{<br />
background: #76a6d4 !important; /* hover background menu item color */<br />
color: #ffffff !important; /* text color when hovered */<br />
}<br />
ul.menu li.current_page_item a,<br />
ul.menu li.current_page_item a:hover {<br />
color: #003366 !important; /* active tab hover text color */<br />
background: #ffffff !important; /* active tab background color */<br />
}</code></p>
<p>Play with the above code until you get the effect you want</p>
<p><strong>Menu in the Sidebar</strong></p>
<p><a href="http://www.paulstamatiou.com">Paul Stamatiou</a> has a good tutorial describing how to move your menu to the sidebar. </p>
<blockquote><p>If you’re looking for an alternative design and want to get your blog to look much more unique, a sidebar menu may be the way to go. Here’s the break down of how this customization works: snag the menu code from <em>header.php</em>, paste it at the top of <em>sidebar.php</em>, add lots of CSS, enjoy.</p>
<p>Open up <em>header.php</em> and find the following code snippet and cut it out. Save <em>header.php</em>.</p></blockquote>
<p><code>&lt;ul class="menu"&gt;<br />
    &lt;li class="&lt;?php if (((is_home()) &#038;&#038; !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?&gt;current_page_item&lt; ?php } else { ?&gt;page_item&lt; ?php } ?&#038;g;"&gt;&lt;a href="&lt;?php echo get_settings('home'); ?&gt;"&gt;Weblog&lt;/a&gt;&lt;/li&gt;<br />
    &lt;?php wp_list_pages('sort_column=menu_order&#038;depth=1&#038;title_li='); ?&gt;<br />
    &lt;?php wp_register('&lt;li&gt;',''); ?&gt;<br />
  &lt;/ul&gt;</code></p>
<blockquote><p>Edit sidebar.php so that the top of your file looks like the code below. Notice how I changed the ul class to sbmenu. This was purely aesthetic but naming it like this is good coding style, with the sb prefix denoting sidebar usage.</p></blockquote>
<p><code>&lt;hr /&gt;<br />
&lt;div class="secondary"><br />
<!--/* MAIN MENU START */--><br />
&lt;ul class="sbmenu"&gt;<br />
    &lt;li class="&lt;?php if (((is_home()) &#038;&#038; !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?&gt;current_page_item&lt; ?php } else { ?&gt;page_item&lt; ?php } ?&gt;"&gt;&lt;a href="&lt;?php echo get_settings('home'); ?&gt;"&gt;Weblog&lt;/a&gt;&lt;/li&gt;<br />
    &lt;?php wp_list_pages('sort_column=menu_order&#038;depth=1&#038;title_li='); ?&gt;<br />
    &lt;?php wp_register('&lt;li&gt;',''); ?&gt;</p>
<p><!--/* MAIN MENU END */--><br />
</code></p>
<p> Use the following CSS to begin with.</p>
<p><code>/* Sidebar Menu */<br />
ul.sbmenu{<br />
   padding-top: 5px;<br />
   margin-top: -34px; /* Moves the menu up into the header image */<br />
   margin-left: 0px !important;<br />
   }<br />
ul.sbmenu li{<br />
   display: block;<br />
   line-height: 1.1em;<br />
   margin-left: -10px !important;<br />
   padding-left: 10px;<br />
   }<br />
ul.sbmenu li:hover{<br />
   background: #d5d5d5 !important;<br />
   width: 216px;<br />
   margin-left: 0px;<br />
   }<br />
ul.sbmenu li a {<br />
   font: 2em Helvetica, Verdana, Arial, Sans-Serif;<br />
   text-transform: lowercase;<br />
   color: #666;<br />
   width: 216px !important;<br />
   display: block;<br />
   margin: 0;<br />
   border: 0;<br />
   }<br />
ul.sbmenu li a:hover{<br />
   background: none !important;<br />
   text-decoration: none !important;<br />
   color: #000;<br />
   }<br />
ul.sbmenu li.current_page_item a,<br />
ul.sbmenu li.current_page_item a:hover {<br />
   color: #333 !important;<br />
   background: none !important;<br />
   text-decoration: none;<br />
   }<br />
ul.sbmenu li.current_page_item{<br />
   background: #CCC !important;<br />
   width: 216px;<br />
   margin-left: 0px;<br />
   }</code></p>
<p>Modify the above code to match your blog</p>
<p>If you would like to use a background image for the menu items, add the appropriate url for the backgrounds of <em>ul.sbmenu</em><em> li.current_page_item</em> and <em>ul.sbmenu li:hover</em>.</p>
<p>Do not stop here, using these codes as a base you can design your own unique menu that makes your blog stand out. </p>
<p>Continue reading <a href="http://www.johntp.com/2006/06/11/how-to-create-a-custom-k2-scheme-part-3/">Part 3</a> and <a href="http://www.johntp.com/2006/06/19/how-to-create-a-custom-k2-scheme-part-4/">Part 4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.johntp.com/2006/06/10/how-to-create-a-custom-k2-scheme-part-2/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>How to create a custom K2 Scheme: Part 1</title>
		<link>http://www.johntp.com/2006/06/09/how-to-create-a-custom-k2-scheme-part-1/</link>
		<comments>http://www.johntp.com/2006/06/09/how-to-create-a-custom-k2-scheme-part-1/#comments</comments>
		<pubDate>Fri, 09 Jun 2006 13:53:14 +0000</pubDate>
		<dc:creator>JohnTP</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.johntp.com/2006/06/09/how-to-create-a-custom-k2-scheme-part-1/</guid>
		<description><![CDATA[K2 is a wonderful theme for the Blog Platform- WordPress. Before modifying it you need to know the basics of XHTML, CSS and PHP. You can find good tutorials for these on the net. A good introduction to Cascading Style Sheets (CSS) can be found here. Introduction What is CSS? It is a file with [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.getk2.com">K2</a> is a wonderful theme for the Blog Platform- <a href="http://www.wordpress.org">WordPress</a>. Before modifying it you need to know the basics of XHTML, CSS and PHP. You can find good tutorials for these on the net. A good introduction to Cascading Style Sheets (CSS) can be found <a href="http://www.developersdigest.org/wiki/index.php/Intro_To_CSS">here</a>.</p>
<p><span id="more-280"></span></p>
<p><strong>Introduction</strong></p>
<p>What is CSS? It is a file with extension <em>.css</em> that controls the various aspects of a Website. Using it you can change the layout, color and font of an entire site at the same time instead of just a page.</p>
<p>Each entry in a CSS file is called a selector and each selector has attributes. For example</p>
<p><code>.intro {<br />
	background: #FFF6BF;<br />
	border-top: 2px solid #FFD324;<br />
	border-bottom: 2px solid #FFD324;<br />
	margin: 10px auto;<br />
	padding: 5px 20px;<br />
	}<br />
</code></p>
<p>In the above code <em>intro</em> is the selector and <em>background, border-top, border-bottom, margin and padding</em> are all it&#8217;s attributes. One basic rule is that each attribute for the selector must have a colon after it&#8217;s name and a semicolon at the end of the line. You can choose any name for the selector.</p>
<p><strong>Some basic things you must know</strong></p>
<ul>
<li>A color is usually entered in it’s hex format like <em>#0000FF</em></li>
<li>Colors such as #000000 and #66CCFF can be entered as #000 and #6CF.
<p>	This type of writing is called ShortHand and can help you in the long run.
</li>
<li>When you have long CSS files it might get confusing to understand which code does what. This is when <em>comments</em> come handy. This is optional too but can be very useful.
<p>Comments are started with a &#8216;/*&#8217; and ended with a &#8216;*/&#8217; (without the quotes)</p>
<p>For example: </p>
<p><code>/* Comments are ignored by browsers */</code>
</li>
<li>Sometimes it is required to add <em>!important</em> to your selector attributes if you find them not working. This gives your scheme attributes more importance than the ones in <em>style.css</em>
<p>For example</p>
<p><code>border-top: 2px solid #3388CC !important;</code>
</li>
<li>Those of you who use multiple browsers might know that every browser displays your site in a different way. How it varies depends on the code. To make your layout work properly in Internet Explorer you may need to add an underscore before the attribute like this
<p><code>_width: 250px;</code></p>
<p>Check your layout in IE from time to time and if you find any attributes causing problems, use this method.
</li>
</ul>
<p><strong>About K2 Schemes</strong></p>
<p>In K2, a file called <em>style.css</em>, located in the root folder, controls the blog&#8217;s layout. But you do not have to touch that file. K2&#8242;s Scheme feature gives us the ability to manage our own stylesheet so that we can revert to the default style when needed.</p>
<p>K2 Schemes work in such a way that it will get the default settings for anything you don&#8217;t declare in your stylesheet from <em>style.css</em> file.</p>
<p>You can add as many schemes as you want in your K2 installation and switch from one style to another whenever you want. How to switch between schemes? You are given the option to select between schemes on the K2 Options page. It can be accessed from the WordPress Admin Panel > Presentation > K2 Options.</p>
<p><strong>How to start a Scheme</strong></p>
<p>First of all decide a good name for your scheme. Let&#8217;s call it TechnoBlue for now. Go to the <em>style</em> folder located on the root folder (<em>wp-content/themes/K2</em>).</p>
<p>Create a folder there with name of <em>your</em> scheme. In this case- <em>TechnoBlue</em>. It is in this folder that you put all the files needed by your scheme like the css file and images.</p>
<p>Now using your favorite text editor create a file called <em>technoblue.css</em> (or anything you like) in your schemes folder. This file will now be able to control your blog&#8217;s layout, colors, fonts, etc when you select it from the WordPress Admin Panel.</p>
<p>Now let&#8217;s start filling your stylesheet with the info it needs. </p>
<p><strong>Author Info</strong></p>
<p>The first piece of code you need to add is a bit of Author info like seen here</p>
<p><code>/*<br />
Author Name : John T P<br />
Author Site : http://www.johntp.com<br />
Style Name : TechnoBlue<br />
Style URI : http://www.johntp.com/2006/06/02/technoblue-released/<br />
Version : R2<br />
Comments : Based on a 3 column K2 theme by 59ideas<br />
*/</code></p>
<p>Copy-paste the above code on your stylesheet and modify it to match your scheme. Do no remove /* and */</p>
<p><strong>Body</strong></p>
<p>The <em>body</em> selector describes how your blog&#8217;s body should look like. This is how my <em>body</em> selector looks like</p>
<p><code>body {<br />
  font-family: arial, comic sans ms, helvetica, sans-serif !important;<br />
  background: #c8d2da !important;<br />
  font-size: 62.5% !important;<br />
  color: #333 !important;<br />
  margin: 0 !important;<br />
  _margin: 0 !important;<br />
  padding-top: 10px;<br />
  padding-bottom: 10px;<br />
}<br />
</code></p>
<p>In the above code, </p>
<p><em>font-family</em> defines which fonts to use on your blog, <em>background</em> sets the background color for your blog and <em>color</em> is the color of the text.</p>
<p><strong>Setting the Flexible Width</strong></p>
<p>K2 allows us to choose between Flexible and Fixed width in the <em>K2 Options</em>. You can use this code for the flexible width setting.</p>
<p><code>body.flex #page {<br />
	width: 90%;<br />
	width: 80%;<br />
	min-width: 970px;<br />
	max-width: 1000px;<br />
	}</code></p>
<p><strong>Page</strong></p>
<p>Following is the code for your blog&#8217;s page. <em>width</em> is used to control the width of the entire blog.</p>
<p><code>#page {<br />
	width: 970px !important; /*Width of entire Blog*/<br />
	_width: 970px !important;  /*Check in IE to get the value that matches your blog*/<br />
    border: 0px !important;<br />
    padding: 0px !important;<br />
    _padding: 0px !important;<br />
	}</code></p>
<p><strong>Shadow Effect</strong></p>
<p>If you want to add a shadow effect to your blog&#8217;s sidebar, like I have on this scheme, create an image of about 1 pixel height and 11 pixel width (these are the values of my sidebar shadow). You can change the images size to fit your blog. Then add this code to the <strong>page</strong> selector.</p>
<p><code>	background: #fff url('sidebar.jpg') !important; /*#fff sets the background color of the page and url('sidebar.jpg') sets the sidebar image*/<br />
    background-repeat: repeat-y !important; /*this makes the sidebar shadow repeat vertically*/<br />
    background-position: right !important; /*this set the position of the background image to the right side*/<br />
	_background: #fff url('sidebar.jpg') !important; /*these are for IE*/<br />
	_background-repeat: repeat-y;<br />
	_background-position: right;  </code>  </p>
<p>I have explained what the above codes do in comments.</p>
<p><strong>Header</strong></p>
<p>The Header is an important part of your blog that makes it stand out from every other blog. Design a good header and save it in your scheme folder. Now copy-paste this code on your stylesheet.</p>
<p><code>#header {<br />
      background: #3399CC url('header.jpg') no-repeat !important;<br />
    height: 127px !important; /*sets the height of header*/<br />
    _height: 126px !important; /*IE tweak*/<br />
    border: none !important;<br />
    padding: 0;<br />
    margin: 0;<br />
    position: relative;<br />
  }</code></p>
<p>Feel free to modify the above code to fit your blog&#8217;s needs. You may not want to use all the attributes I have used. </p>
<p>In the above code,</p>
<p><em>background</em> sets the color and background image of your header and <em>height</em> sets the height of the header. Change your image&#8217;s header size accordingly.</p>
<p>You can adjust the width of your header title with this code</p>
<p><code>#header-title {<br />
        width: 47%;<br />
        float: left;<br />
        }</code></p>
<p>To make your blog extra unique, design a header graphic that has your blog name and description on it (like mine). Before this you will have to disable the blog name and description automatically displayed by WordPress. This can be done with the following code.</p>
<p><code>h1{<br />
display: none;<br />
}<br />
#header .description {<br />
display: none;<br />
}<br />
</code></p>
<p><strong>Footer</strong></p>
<p>I have seen some bloggers leave the footer as it is. There are some things you can do with it like add a Footer image. The following is the code for it</p>
<p><code>#footer {<br />
    background: #ffffff url('footer.jpg') bottom center no-repeat !important;<br />
	height: 70px; /*sets the height of footer*/<br />
	margin: 0px auto 0 !important;<br />
	_margin-top: -15px;<br />
	position: relative !important;<br />
	padding-top: 0px;<br />
	_padding-top: 0px;<br />
	width: 970px; /*sets the width of footer*/<br />
	_width: 970px; /*IE tweak*/<br />
}<br />
</code></p>
<p>In the above code, <em>background</em> is used to display your header image and <em>no-repeat</em> prevents the image from repeating.</p>
<p>Just make sure your footer image is there on your scheme folder.</p>
<p><strong>What if you want to put links on your footer?</strong> You may want to add text or links on your footer like I have added &#8216;<em>Copyright ©2005-2006 John T P, All rights reserved</em>&#8216;.  You can do this by editing the <em>footer.php</em>.</p>
<p>Find &lt;p id=&#8221;footer&#8221;&gt; and add your text or links below it. </p>
<p><strong>Changing the Link Color</strong></p>
<p><code>#footer a {<br />
	color: #333;<br />
	border-bottom: 0px dotted #ccc;<br />
	font-weight: 100;<br />
	}</code></p>
<p>Add this code to modify the hover propertes of the links in footer</p>
<p><code>#footer a:hover {<br />
	border: none;<br />
	text-decoration: none;<br />
	color: #3366CC;<br />
	}</code></p>
<p>If you want your links underlined when hovered, substitute <em>none</em> with <em>underline</em> for <em>text-decoration</em>. Also you can use <em>overline</em> if you want your links overlined when hovered. </p>
<p><strong>Adding Blog Stat Codes</strong></p>
<p>I usually add codes by statistics softwares on the footer simply because I think it&#8217;s the best place for it. You can add your statistics code below this code in the <em>footer.php</em></p>
<p><code>&lt;?php do_action('wp_footer'); ?&gt;</code></p>
<p><strong>Color for your Blog</strong></p>
<p>Do not know which color to use? You can select a Browser-Safe color from this chart</p>
<p><center><img src="http://www.johntp.com/wp-content/uploads/colorchart.gif" alt="Color Chart" /></center></p>
<p>This chart was created by <a href="http://www.lissaexplains.com">Lissa</a> about 6 years ago. At that time I used to love her chart and saved it on my hard disk. Now 6 years later I am using it to help my readers <img src='http://www.johntp.com/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </p>
<p>As you can see, it all depends on how you want your blog to look like. Feel free to modify the CSS codes I have given to match your blog. I will continue this series tomorrow. Please feel free to ask any questions you may have.</p>
<p>Help me to improve this tutorial by suggesting on what to cover on the upcoming parts of this series <a href="http://www.johntp.com/2006/06/09/preparation-for-the-k2-mod-tutorial/">here</a>.</p>
<p>Also check <a href="http://www.johntp.com/2006/06/10/how-to-create-a-custom-k2-scheme-part-2/">Part 2</a>, <a href="http://www.johntp.com/2006/06/11/how-to-create-a-custom-k2-scheme-part-3/">Part 3</a> and <a href="http://www.johntp.com/2006/06/19/how-to-create-a-custom-k2-scheme-part-4/">Part 4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.johntp.com/2006/06/09/how-to-create-a-custom-k2-scheme-part-1/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Common Web Designing Mistakes</title>
		<link>http://www.johntp.com/2006/01/17/common-web-designing-mistakes/</link>
		<comments>http://www.johntp.com/2006/01/17/common-web-designing-mistakes/#comments</comments>
		<pubDate>Tue, 17 Jan 2006 08:13:58 +0000</pubDate>
		<dc:creator>JohnTP</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.johntp.com/2006/01/17/common-web-designing-mistakes/</guid>
		<description><![CDATA[I have mentioned here a few mistakes that are commonly made by web designers: Frames: A few years ago, frames were the in thing. They allowed one or two parts of your site stay constant while only one frame changed.As a result people used to use them for fast loading of pages.But with the growing [...]]]></description>
			<content:encoded><![CDATA[<p>I have mentioned here a few mistakes that are commonly made by web designers:</p>
<ol>
<li><strong>Frames</strong>: A few years ago, frames were the in thing. They allowed one or two parts of your site stay constant while only one frame changed.As a result people used to use them for fast loading of pages.But with the growing popularity of search engines, it became a known fact that Framed sites were not being properly indexed.
<p>When a search bot visits a site with frames it indexes only the main frame ignoring all the other frames, leading to sites with frames dropping rapidly in search engine rankings. This is one of the reasons why frames are no longer popular.</p>
<p>Another reason is that bookmarking a site with frames is not easy.</p>
<p><span id="more-62"></span></li>
<li><strong>Page Title</strong>: Most designers leave their page title as &#8216;Welcome to Mysite.com&#8217;. Now this is a very bad idea as it depends almost entirely on the page title whether or not a visitor clicks on your site on a search result. Your page title should be a very short description of your site.Most search engines only displays a part of a long page title, so make sure you keep it below 65 characters.</li>
<li><strong>Page size</strong>: Huge pages take too much time to load and thus you could loose visitors. Keep your  page sizes less than 100 KB.</li>
<li><strong>Flash</strong>: Using Flash on your site to make it more attractive is a good idea but make sure you keep an eye on its size. Flash based sites are not spidered and thus it tends to loose visitors.Always remember that text loads before graphics and most people will scan through whatever appears on your site first and decides whether the content is what they are searching for. Even if you have relevant contents neatly dispalyed using Flash menus, many people may not stick around long enough to see this.
<p>If you have Flash intros on your site, make sure you include a &#8216;Skip Intro&#8217; option.</p>
<p>The loading time problems will no longer be a problem once everyone starts using broadband.</li>
<li><strong>Colors</strong>: I have seen many web sites use colors that don&#8217;t match. It only proves that the designer does not have a good color sense.:idea: Tip: Choose a color (preferbly your sites logo color) and use its dark and light versions. If you decide to go for a dark background then use light text and dark text for a light background.
<p>A white background with black text is universally considered the most readable.</p>
<p>You must always use Web safe colors on your site. You can use the Web safe color table from <a href="http://www.lissaexplains.com/color.shtml">here</a>.</li>
<li><strong>Outdated Pages</strong>: You should always update the content on your site. A site that was last updated over a couple of months will loose visitors.</li>
<li><strong>Navigation</strong>: Many times I have come across sites that have poor navigation. All pages of your site should be linked to your homepage and other major sections of your site. Create a navigation bar and use it on all pages of your site.</li>
<li><strong>Animations</strong>: Marquees, like frames, are outdated and are not considered as good design anymore.Even Animated GIF images should not be used much. They are considered as advertisements by many. They will only make your site look unprofessional.</li>
<li><strong>Tables</strong>: Yes, tables are outdated too. Tables make our pages load slowly. Use XHTML with CSS and your site will be much faster.</li>
<li><strong>Images</strong>: Images help make our site more attractive. But always make sure you optimize its size by reducing the number of colors. You can do this with programs like Adobe Photoshop.Use the height and width attribute of the image tag so that pages won&#8217;t have to wait till the image is loaded completely.
<p>Use JPG for Photographs and GIF for artwork.</li>
<li><strong>Javascript</strong>: Javascript helps to add more functionality to our site. But too much of it will increase page load time.</li>
<li><strong>Music</strong>: A light music in the background is fine but keep an eye on its size.</li>
<li><strong>Browser Support</strong>: Most web designers only check their designs on their favorite browser. Your visitors may be using another browser so check your designs in all major browsers like IE, Firefox, Opera and others. Also, it is a good idea to check your designs on Lynx, a text-based browser in Linux, to see how it will look like to a search engine bot.</li>
<li><strong>Scroll bars</strong>: In professional web designing, scroll bars should not be visible on the homepage especially horizontal scrollbar. Homepages should fit the screen. To prevent scrollbars you can design your homepage at a resolution of 770 x 434 pixels.</li>
<li><strong>Contents</strong>: I have seen many websites that take a lot of time to load just because they have included a lot of graphics. There should be a fine balance between text and graphics.A good rule of thumb  is the ratio of 80:20, i.e, 80% text to 20% graphics.</li>
<li><strong>Advertisements</strong>: Advertisements are not part of web designing. I have mentioned them here because a lot of people are using them to earn extra money. Just make sure you don&#8217;t clutter your pages with a lot of advertisements.Text based advertising is much better than image based ones. Animated advertisements are disliked by many and you could loose visitors using them. I recommend Google AdSense as their ads are based on the content of the web page</li>
</ol>
<p>What other mistakes can a Web Designer make? Please share your tips here via comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johntp.com/2006/01/17/common-web-designing-mistakes/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
