<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>The Theme Museum</title>
	
	<link>http://wp-content-themes.com</link>
	<description>Your Wordpress blog themes are here</description>
	<lastBuildDate>Mon, 08 Feb 2010 05:59:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TheThemeMuseum" /><feedburner:info uri="thethememuseum" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>TheThemeMuseum</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Dynamic headings for the blog title</title>
		<link>http://feedproxy.google.com/~r/TheThemeMuseum/~3/6k9sggQMeO8/319</link>
		<comments>http://wp-content-themes.com/dynamic-headings-for-the-blog-title/319#comments</comments>
		<pubDate>Mon, 08 Feb 2010 05:56:56 +0000</pubDate>
		<dc:creator>Delicia</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[conditional tags]]></category>
		<category><![CDATA[headings]]></category>

		<guid isPermaLink="false">http://wp-content-themes.com/?p=319</guid>
		<description><![CDATA[In this text I&#8217;ll present a little snippet  which allows to dynamically asign h1/h2 tags to the title of a WordPress blog, depending on the type of page. The code is very simple and intuitive and makes use of conditional tags.
A story about headings
Once upon a time, when I started blogging, there was a strong [...]]]></description>
			<content:encoded><![CDATA[<p>In this text I&#8217;ll present a little snippet  which allows to dynamically asign h1/h2 tags to the title of a WordPress blog, depending on the type of page. The code is very simple and intuitive and makes use of conditional tags.</p>
<h3>A story about headings</h3>
<p>Once upon a time, when I started blogging, there was a strong logic behind the heading distribution on a blog page. The blog title was nested in a h1 tag, and every other title was wrapped by h2 tag. Almost every theme available preserved this structure, proposed by the <em>Classic</em> and <em>Default</em> (<em>Kubrik</em>) themes. But, back then, WordPress was just a blogging platform, and blogs were onlu personal logs. And, for a personal log, it was the best possible distribution.</p>
<p>Next, when the professional blogging sprang into its virtual being, the blog&#8217;s name began to lose its importance; the post title was the new star, as it was more likely to be featured by SERPs. The emergence of niche blogs produced an important mutation in the heading structure (as well as in <a href="http://wp-content-themes.com/optimal-title-in-wordpress/24">the structure of the title meta tag</a>). The urge of getting individual posts posts indexed fast (and high) convinced pro bloggers to drastically change the headings&#8217; hierarchy. Widget titles were wrapped by h3 tags (which seems to be a good idea, since &#8220;Recent comments&#8221; or &#8220;Blogroll&#8221; could hardly be a topic on a blog about tulips), the headings of single post and page titles shifted to h1, and the blog&#8217;s name was abandoned to the misery of a h2 tag.</p>
<p>This heading structure, preached by many powerful voices in the wp-sphere, is by now an established coding trend. It can be found in many themes (my own included) and, like any other trend, tends to remain unquestioned.</p>
<h3>The problem</h3>
<p>The problem with this heading distribution is that it leaves most of the pages without a h1 tag; or, sucha page, is like a book without title. For an information architect, a homepage without a h1 tag is a crime. Indexing robots might have difficulties in finding the most important headline on the page, and they have to only rely on the title tag. This isn&#8217;t a drama, but it can be done better.</p>
<h3>The solution</h3>
<p>Conditional tags are one of the most powerful tools offered by WorsPress. Their reason for being is to allow displaying different content on different type of pages. So why shouldn&#8217;t we use them to provide blogs with a proper heading distribution, saving the blog name from oblivion?</p>
<h3>The code</h3>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">&lt;?php</span> <span class="kw1">if</span><span class="br0">&#40;</span>is_single<span class="br0">&#40;</span><span class="br0">&#41;</span> || is_page<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw2">?&gt;</span><br />
&lt;h2&gt;&lt;a href=<span class="st0">&quot;&lt;?php echo get_settings(&#8216;home&#8217;); ?&gt;&quot;</span>&gt;&lt;?php bloginfo<span class="br0">&#40;</span><span class="st0">&#8216;name&#8217;</span><span class="br0">&#41;</span>; ?&gt;&lt;/a&gt;&lt;/h2&gt;<br />
<span class="kw2">&lt;?php</span> <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span> <span class="kw2">?&gt;</span><br />
&lt;h1&gt;&lt;a href=<span class="st0">&quot;&lt;?php echo get_settings(&#8216;home&#8217;); ?&gt;&quot;</span>&gt;&lt;?php bloginfo<span class="br0">&#40;</span><span class="st0">&#8216;name&#8217;</span><span class="br0">&#41;</span>; ?&gt;&lt;/a&gt;&lt;/h1&gt;<br />
<span class="kw2">&lt;?php</span> <span class="br0">&#125;</span> <span class="kw2">?&gt;</span></div>
<h3>Explanation</h3>
<p>The code is telling WordPress: if it&#8217;s a single or a &#8220;page&#8221; page, nest the blog name in a h2 tag (since the post title is wrapped by a h1 tag); for any other type of page (homepage/catepgory/tag/year/month/day/hour/minute/search), nest the blog name in a h1 tag.</p>
<p>If you want to use to use this code, open header.php, spot the current code for your blog name and replace it (but don&#8217;t forget to back it up before doing so).</p>


<p>Related posts:<ol><li><a href='http://wp-content-themes.com/top-ten-free-gossip-blog-themes/99' rel='bookmark' title='Permanent Link: Top ten free gossip blog themes'>Top ten free gossip blog themes</a></li>
<li><a href='http://wp-content-themes.com/optimal-title-in-wordpress/24' rel='bookmark' title='Permanent Link: Optimal title in Wordpress'>Optimal title in Wordpress</a></li>
<li><a href='http://wp-content-themes.com/strict-validating-searchform-wordpress/34' rel='bookmark' title='Permanent Link: Strict validating searchform (Wordpress)'>Strict validating searchform (Wordpress)</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheThemeMuseum/~4/6k9sggQMeO8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wp-content-themes.com/dynamic-headings-for-the-blog-title/319/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wp-content-themes.com/dynamic-headings-for-the-blog-title/319</feedburner:origLink></item>
		<item>
		<title>How to easily change the widgets’ markup</title>
		<link>http://feedproxy.google.com/~r/TheThemeMuseum/~3/d3ST1YJgD9U/304</link>
		<comments>http://wp-content-themes.com/how-to-easily-change-the-widgets-markup/304#comments</comments>
		<pubDate>Wed, 08 Jul 2009 06:47:45 +0000</pubDate>
		<dc:creator>Delicia</dc:creator>
				<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[validation]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://wp-content-themes.com/?p=304</guid>
		<description><![CDATA[When it comes to validation, one of the most challenging areas of a blog is the sidebar. For a HTML newbie, it isn&#8217;t always self-evident that a li tag must be nested inside of a ul or ol tag. Or the default markup for the widgets is:

&#60;li id=&#34;widget&#8217;s_id&#34; class=&#34;widget&#8217;s_class&#34;&#62;
&#60;h2&#62;Widget&#8217;s title&#60;/h2&#62;
Widgets&#8217;s content&#60;/li&#62;
&#160;
If, in the same sidebar, [...]]]></description>
			<content:encoded><![CDATA[<p>When it comes to validation, one of the most challenging areas of a blog is the sidebar. For a HTML newbie, it isn&#8217;t always self-evident that a <em>li</em> tag must be nested inside of a <em>ul</em> or <em>ol</em> tag. Or the default markup for the widgets is:<br />
<span id="more-304"></span></p>
<div class="dean_ch" style="white-space: wrap;">&lt;li id=&quot;widget&#8217;s_id&quot; class=&quot;widget&#8217;s_class&quot;&gt;<br />
&lt;h2&gt;Widget&#8217;s title&lt;/h2&gt;<br />
Widgets&#8217;s content&lt;/li&gt;<br />
&nbsp;</div>
<p>If, in the same sidebar, someone has chosen to display widgets&#8217; <em>and</em> custom content, and if he hasn&#8217;t noticed the opening and closing <em>ul</em> tag, the code simply won&#8217;t validate, which can cause some displaying issues in older browsers.<br />
The easiest way to validate the code of a sidebar area is to wrap the widgets with a <em>div</em> tag. Aditionnaly, you may want to change the h2 heading for the widgets&#8217; title to a les important one, since the sidebar&#8217;s content is complementay. To do it, all it takes is to replace a little bit of PHP in the functions file of the theme you&#8217;re using.<br />
The most common script that registers a sidebar, making it widget ready is this one:
</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw1">if</span> <span class="br0">&#40;</span> <a href="http://www.php.net/function_exists"><span class="kw3">function_exists</span></a><span class="br0">&#40;</span><span class="st0">&#8216;register_sidebars&#8217;</span><span class="br0">&#41;</span> <span class="br0">&#41;</span><br />
&nbsp; &nbsp; register_sidebars<span class="br0">&#40;</span><span class="nu0">2</span><span class="br0">&#41;</span>;</div>
<p>These lines are telling WordPress to allow you to use widgets in two sidebars. The widgets&#8217; markup is the one described above.<br />
To replace the <em>li</em> tag with <em>div</em>, you&#8217;ll need this script:
</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw1">if</span> <span class="br0">&#40;</span> <a href="http://www.php.net/function_exists"><span class="kw3">function_exists</span></a><span class="br0">&#40;</span><span class="st0">&#8216;register_sidebars&#8217;</span><span class="br0">&#41;</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
register_sidebars<span class="br0">&#40;</span><span class="nu0">2</span>, <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><br />
<span class="st0">&#8216;before_widget&#8217;</span> =&gt; <span class="st0">&#8216;&lt;div id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#8217;</span>,<br />
<span class="st0">&#8216;after_widget&#8217;</span> =&gt; <span class="st0">&#8216;&lt;/div&gt;&#8217;</span>,<br />
<span class="st0">&#8216;before_title&#8217;</span> =&gt; <span class="st0">&#8216;&lt;h3&gt;&#8217;</span>,<br />
<span class="st0">&#8216;after_title&#8217;</span> =&gt; <span class="st0">&#8216;&lt;/h3&gt;&#8217;</span>,<br />
<span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span></div>
<p>You&#8217;ll only have to replace the existing script in the functions.php file registering the sidebars with this one. Then edit the sidebar.php file of your theme and delete the first <em>ul</em> and the last <em>/ul</em>. If you don&#8217;t like the appearence of the widgets&#8217; titles, edit the style.css file and look for something like #sidebar h2; change it to #sidebar h3 (or the heading you&#8217;ve chosen), and you&#8217;re back to the ols look of your blog.<br />
<strong>NB</strong> The script above is only an example. Your theme might use one or more widgetized sidebars, so make sure you register the actual number:<br />
/p>
<div class="dean_ch" style="white-space: wrap;"><span class="br0">&#40;</span>register_sidebars<span class="br0">&#40;</span>x, <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span></div>
<p>.<br />
<strong>Caution</strong>: Make sure that the functions.php file opens with
</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">&lt;?php</span></div>
<p>and ends with
</p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">?&gt;</span></div>
<p>or your blog won&#8217;t display at all.</p>


<p>Related posts:<ol><li><a href='http://wp-content-themes.com/wordpress-28-for-theme-authors/270' rel='bookmark' title='Permanent Link: WordPress 2.8 for theme authors'>WordPress 2.8 for theme authors</a></li>
<li><a href='http://wp-content-themes.com/strict-validating-searchform-wordpress/34' rel='bookmark' title='Permanent Link: Strict validating searchform (Wordpress)'>Strict validating searchform (Wordpress)</a></li>
<li><a href='http://wp-content-themes.com/how-to-get-the-same-style-for-default-and-widgeted-sidebars/125' rel='bookmark' title='Permanent Link: How to get the same style for default and widgeted sidebars'>How to get the same style for default and widgeted sidebars</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheThemeMuseum/~4/d3ST1YJgD9U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wp-content-themes.com/how-to-easily-change-the-widgets-markup/304/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://wp-content-themes.com/how-to-easily-change-the-widgets-markup/304</feedburner:origLink></item>
		<item>
		<title>24 online newspapers font stacks</title>
		<link>http://feedproxy.google.com/~r/TheThemeMuseum/~3/FYemZY4R5XU/293</link>
		<comments>http://wp-content-themes.com/24-online-newspapers-font-stacks/293#comments</comments>
		<pubDate>Mon, 08 Jun 2009 18:12:05 +0000</pubDate>
		<dc:creator>Delicia</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[fonts]]></category>

		<guid isPermaLink="false">http://wp-content-themes.com/?p=293</guid>
		<description><![CDATA[In this article, I’ll present 24 font stacks used by major online newspapers based in United States and in France. I’ll compare the American and European typography under this respect and, hopefully, I’ll get to some conclusion.
What are font stacks
Font stacks are lists of font family names; they live in stylesheets; their members are comma [...]]]></description>
			<content:encoded><![CDATA[<p>In this article, I’ll present 24 font stacks used by major online newspapers based in United States and in France. I’ll compare the American and European typography under this respect and, hopefully, I’ll get to some conclusion.</p>
<h2>What are font stacks</h2>
<p>Font stacks are lists of font family names; they live in stylesheets; their members are comma separated; their purpose in life is to prioritize the typeface choice when a browser displays a page. Generally, it is considered that a good font stack contains four elements: the ideal typeface, the alternative, the common and the generic. For instance:</p>
<div class="dean_ch" style="white-space: wrap;">body <span class="br0">&#123;</span> Sansation, ‘Gil Sans MT’, Arial, <span class="kw2">sans-serif</span> ; <span class="br0">&#125;</span></div>
<p>This font stack will tell the browser to look into the system’s font library for Sansation; if this font isn’t installed (and it probably isn’t), the browser will look for Gil Sans; then, for Arial; finally, if the system’s font library doesn’t contain any of the specific fonts declared, it will resign and display the page using the generic sans-serif.</p>
<p>Implementing font stacks it’s a great usability technique. But, like any other usability feature, using it means compromise. A designer will have to review all the all the typographic versions declared in the list of typefaces and unhappily to be aware that most users will only have access to the downgraded versions of his / her work.</p>
<p><strong>The survey</strong><br />
The initial hypothesis of this survey was that font stacks are highly dependable on a website’s niche. A website addressed to designers is more likely to use uncommon typefaces then a site addressing to a general audience; symmetrically, an online newspaper is expected to use dull and flat font stacks. Being quite sure that the hypothesis will be verified, I decided to add another hypothesis, namely that there is a difference in the use of fonts between the American and European typographical tradition (in a web environment). Anyhow, given the uniformity of resources, this difference shouldn’t be radical.</p>
<p><div id="attachment_294" class="wp-caption alignleft" style="width: 539px"><img src="http://wp-content-themes.com/wp-content/uploads/2009/06/liberation.jpg" alt="Libération" title="liberation" width="529" height="305" class="size-full wp-image-294" /><p class="wp-caption-text">Libération</p></div><strong>The methodology</strong><br />
In the first instance, I’ve chosen the survey’s subjects. The selection was based on two criteria: traffic and notoriety.<br />
<span class="caps">American newspapers</span>: New York Times, Washington Post, New York Post, Los Angeles Times. Daily News, The Boston Globe, Chicago Tribune, Detroit News, Boston Herald, USA Today, The Washington Times, The Philadelphia Inquirer, and The Wall Street Journal.<br />
<span class="caps">French newspapers</span> alphabetically: 20 minutes. Courrier International, France Soir, L’Equipe, L’Humanité, Le Figaro, Le Monde, Le Nouvel Observateur, Le Parisien, Libération et Métro.<br />
My main interest was to identify the general font-family declaration under the body selector. Occasionally, I was interested in the typefaces of specific elements, but I didn’t do it systematically; in many cases, headings or asides use the main family; in other cases, I was discouraged by the poor condition of the stylesheets. As a general remark, I’ve read some really bad stylesheets. Yuk.</p>
<p>In order to keep a neutral manner of presentation, I’ll structure the list according to the font declarations and not to the newspapers names.</p>
<h2>The font-family declarations</h2>
<p><em>Sans serif families</em>Arial, sans-serif: used by Le Monde and Métro;<br />
Arial, Helvetica, sans-serif: used by Los Angeles Times, The Boston Globe, Detroit News. USA Today, The Philadelphia Inquirer, The Wall Street Journal, L’Equipe, Le Nouvel Observateur (without a general declaration under the body tag);<br />
Arial, Helvetica, Clean, sans-serif: used by Chicago Tribune and 20 minutes;<br />
Helvetica, Arial, sans-serif: used by The Washington Times;<br />
Arial, Verdana, Helvetica, Tahoma, sans-serif: used by New York Post.<br />
Arial, Verdana, Tahoma, sans-serif: used by Boston Herald;<br />
Arial, Helvetica, Verdana, Geneva, sans-serif: used by Daily News and Le Monde;<br />
Arial, Geneva, Helvetica, sans-serif: used by Le Parisien;<br />
Verdana, Arial, Helvetica, sans-serif: used by Libération;<br />
Geneva, Arial, Helvetica, sans-serif: used by L’Humanité;<br />
&#8220;Lucida Grande&#8221;, &#8220;Lucida Sans Unicode&#8221;, sans-serif: used by Le Courrier International;<br />
&#8220;Lucida Grande&#8221;, Verdana, Geneva, Arial, Helvetica, sans-serif: used by Le Figaro;<br />
<strong>Serif fonts</strong><br />
Georgia, serif: New York Times and Le Monde (for the content);<br />
&#8220;Trebuchet MS&#8221;, serif: France Soir;<br />
&#8220;Georgia&#8221;, &#8220;Times New Roman&#8221;, Times, serif: The Boston Globe (font stack for the content).</p>
<p><strong>Sans serif headings</strong>Arial,Verdana,sans-serif: Los Angeles Times;<br />
Arial, sans-serif: Chicago Tribune;<br />
Arial Black: Boston Herald;<br />
Arial Narrow, Helvetica, Arial, san-serif: The Washington Times;<br />
&#8216;Trebuchet MS&#8217;, Verdana, sans-serif: Le Figaro;<br />
<strong>Serif headings</strong><br />
Georgia, &#8220;Times New Roman&#8221;, Times, serif: The New York Times, Daily News, The Philadelphia Inquirer, Libération;<br />
Georgia, serif: Chicago Tribune;</p>
<p>Georgia, &#8220;Century Schoolbook&#8221;, &#8220;Times New Roman&#8221;, Times, serif: The Wall Street Journal;<br />
<strong>Other font families, used for minor elements</strong><br />
Tahoma, Arial, Verdana: Boston Herald;<br />
Tahoma: The Philadelphia Inquirer;<br />
‘Century Gothic’, Trebuchet MS: L’Equipe.<br />
<strong>Remarks</strong></p>
<ul>
<li>as you can see, most of the font stacks presented aren’t too different from the Dreamweaver defaults;</li>
<li>some of them are really curious, calling first a very common typeface and then a more unusual one;</li>
<li>generally, online newspapers stick to web-safe fonts;</li>
<li>the French newspapers, without being more creative, are more relaxed in using fonts (we could even see some bizarre choices, such as ‘Trebuchet MS’, serif.</li>
<li>none of the websites reviewed uses @font-face rules or sIFR / Cufón embedding.</li>
</ul>
<p><strong>Conclusion</strong><br />
I definitely prefer printed newspapers’ typography. The sad conclusion of this survey is that none of these online newspapers takes advantage on the benefits of font stacks. I don’t think that the web will kill the print, but, under the current circumstances, it will sure kill an awesome and secular typographical tradition.<br />
I sometimes wonder how much did those newspapers pay for their websites design.<br />
PS. Photo by <a href="http://www.flickr.com/photos/markdmartin/3157360632/">Mark D. Martin</a>.</p>


<p>Related posts:<ol><li><a href='http://wp-content-themes.com/the-museum-got-redesigned/216' rel='bookmark' title='Permanent Link: The Museum got redesigned'>The Museum got redesigned</a></li>
<li><a href='http://wp-content-themes.com/how-to-get-the-same-style-for-default-and-widgeted-sidebars/125' rel='bookmark' title='Permanent Link: How to get the same style for default and widgeted sidebars'>How to get the same style for default and widgeted sidebars</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheThemeMuseum/~4/FYemZY4R5XU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wp-content-themes.com/24-online-newspapers-font-stacks/293/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wp-content-themes.com/24-online-newspapers-font-stacks/293</feedburner:origLink></item>
		<item>
		<title>WordPress 2.8 for theme authors</title>
		<link>http://feedproxy.google.com/~r/TheThemeMuseum/~3/VOgr_Z3rGio/270</link>
		<comments>http://wp-content-themes.com/wordpress-28-for-theme-authors/270#comments</comments>
		<pubDate>Thu, 04 Jun 2009 17:43:07 +0000</pubDate>
		<dc:creator>Delicia</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[template tags]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://wp-content-themes.com/?p=270</guid>
		<description><![CDATA[This post is a mere draft. For the last couple of hours I&#8217;ve been reading some of the wp 2.8 beta 2 fliles and I finally decided to make a list of the features that are bound blow theme authors&#8217; minds.
1. Theme installtion from within the admin area
The analogue feature was available for plugins since [...]]]></description>
			<content:encoded><![CDATA[<p>This post is a mere draft. For the last couple of hours I&#8217;ve been reading some of the <a href="http://wordpress.org/development/2009/05/wordpress-2-8-beta-2/">wp 2.8 beta 2</a> fliles and I finally decided to make a list of the features that are bound blow theme authors&#8217; minds.</p>
<p><strong>1. Theme installtion from within the admin area</strong><br />
The analogue feature was available for plugins since version 2.7; with wp 2.8, users will be able to pick a design for their blog by searching the Theme Repository. This means that themes hosted there will probably reach a much larger audience; this also means that the Repository will attract new theme authors, which will eventually increase the competition and the quality of the themes.<br />
To see all the functions used by this feature, download wp 2.8 beta 1 and check wp-admn/includes/theme-install.php.</p>
<p><span id="more-270"></span>2. <strong>body_class</strong><br />
I&#8217;m not into gambling, but I bet body_class will offer theme authors many nights spent in delightful insomnies. This function provides different classes to body elements, so you&#8217;ll be able to have particular styles for different templates (homepage, main index page, category, tag, page, search, archive, date) and even different styles for particular posts, pages, categories or tags. Of course, this function will work best for custm themes, but the the oportunities it opens for public releases aren&#8217;t to be neglected.<br />
<em>Usage</em><br />
In header.php, replace <code>&lt;body&gt;</code> with</p>
<div class="dean_ch" style="white-space: wrap;">&lt;body <span class="kw2">&lt;?php</span> body_class<span class="br0">&#40;</span><span class="br0">&#41;</span>; ?&gt;&gt;</div>
<p>For the full list of classes generated by this function, <a href="http://www.nathanrice.net/blog/wordpress-2-8-and-the-body_class-function/">check this post by Nathan Rice</a>.<br />
<a href="http://wp-content-themes.com/wp-content/uploads/2009/06/template_tags.jpg"><img src="http://wp-content-themes.com/wp-content/uploads/2009/06/template_tags.jpg" alt="template tags" title="template_tags" width="295" height="300" class="alignleft size-full wp-image-291" /></a><strong>3. Extended control over widgets</strong><br />
If you take a look at wp-includes/widgets.php, you&#8217;ll be thrilled to dicover that wp 2.8 will let you <a href="http://wpengineer.com/wordpress-built-a-widget/">create your own widgets</a> and <a href="http://lesterchan.net/wordpress/2009/03/17/new-wp_widget-class-in-wordpress-28/">use them in multiple instances on the same page</a> (i.e. WordPress won&#8217;t provide an unique id to each widget, but to each widget instance).<br />
But wait, there&#8217;s more. If you want to display widgets elsewhere than the sidebar, you don&#8217;t need to create fake registered sidebars anymore. Just use the_widget template tag. This means you can <a href="http://justintadlock.com/archives/2009/05/26/the-complete-guide-to-creating-widgets-in-wordpress-28">create a custom widget</a> and insert it anywhere you want.<br />
The new widget treatment makes an old dream of some WordPress users, who wanted a &#8220;module base&#8221; CMS, come true.<br />
<strong>4. New template tags</strong><br />
First, the tag_description, which acts like the category description we all know. Second, some author related template tags. A brand new feed related funtion, automatic_feed_links() (when set to true in functions.php, you won&#8217;t have to link to the blog&#8217;s feeds in header.php). Two new parameters for <a href="http://codex.wordpress.org/wp_list_pages">wp_list_pages()</a>, number and offset. Wp_tag_cloud() now supports an echo argument, which is really cute. Finally, wp 2.8 includes the latest jQuery version.<br />
You should definitely check the Default theme&#8217;s files (which now supports WAI-ARIA landmark roles) to see other changes, e.g. the new  echo esc_attr().<br />
I&#8217;ll end this post here, for I feel like coding.</p>


<p>Related posts:<ol><li><a href='http://wp-content-themes.com/how-to-get-the-same-style-for-default-and-widgeted-sidebars/125' rel='bookmark' title='Permanent Link: How to get the same style for default and widgeted sidebars'>How to get the same style for default and widgeted sidebars</a></li>
<li><a href='http://wp-content-themes.com/how-to-easily-modify-the-colors-of-a-wordpress-theme/219' rel='bookmark' title='Permanent Link: How to easily modify the colors of a WordPress theme'>How to easily modify the colors of a WordPress theme</a></li>
<li><a href='http://wp-content-themes.com/how-to-easily-change-the-widgets-markup/304' rel='bookmark' title='Permanent Link: How to easily change the widgets&#8217; markup'>How to easily change the widgets&#8217; markup</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheThemeMuseum/~4/VOgr_Z3rGio" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wp-content-themes.com/wordpress-28-for-theme-authors/270/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://wp-content-themes.com/wordpress-28-for-theme-authors/270</feedburner:origLink></item>
		<item>
		<title>On using JavaScript</title>
		<link>http://feedproxy.google.com/~r/TheThemeMuseum/~3/Oc-26-Uf3oY/288</link>
		<comments>http://wp-content-themes.com/on-using-javascript/288#comments</comments>
		<pubDate>Tue, 02 Jun 2009 11:08:20 +0000</pubDate>
		<dc:creator>Delicia</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://wp-content-themes.com/?p=288</guid>
		<description><![CDATA[I&#8217;m not a JavaScript fan, but I must admit it mkes happen lots of pretty things. This is probably why about half of the web design articles I read every day are JavaScript related. JS slowly got more and more popular, and sometimes I thing this frenzy is not so different from the overuse of [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not a JavaScript fan, but I must admit it mkes happen lots of pretty things. This is probably why about half of the web design articles I read every day are JavaScript related. JS slowly got more and more popular, and sometimes I thing this frenzy is not so different from the overuse of animated GIFs in the beginning of the web.<br />
<span id="more-288"></span>While doing all those impressive things (e.g. vital IE6 fixes, slideshows, tabbed navigation, etc.), JavaScript still has two major drawbacks: it stuffs the code, making a page load considerably slower, and has an important usability issue. The high speed loading time may sometimes sacrified for the results (after all, we live in broadband connections era), but the usability issue shouldn&#8217;t be neglected. Fact is that many users out there have decided to disable the JavaScrpt in their browsers. They probably had unpleasant experiences with websites alterig their browsers behavior, or they&#8217;re sick of obtrusive ads, or they simply don&#8217;t know how to enable the JS (my mom doesn&#8217;t), the reasons don&#8217;t really matter; what matters though is that the percentage of JS disabled browsers is very close to the IE6 market share.<br />
Back in 2007, <a href="http://visualrevenue.com/blog/2007/08/eu-and-us-javascript-disabled-index.html">3.05%</a> of the browsers located in US were JS disabled; ever since there, the percent must have been decreasing, but it is still important. To only give an example, 2.02% of the visitors of this blog disabled the JavaScript (and only 1.62% use IE6).<br />
This means that a few percents of our readers will simply not see our nice anumated tag clouds, but something really ugly instead; and this is an optimistic situation, for they&#8217;ll sometimes see nothing.<br />
I find it&#8217;s quite odd to see such a passionate debate around IE6, whether one should support it or drop it, and, on the other hand, to read almost nothing about the usability issues implied by the use of JavaScript. I think it&#8217;s awkward to see claims about giving &#8220;power to the people&#8221; (e.g. by using ems instead of pixels), and, on the very same pages, to see a pretty (an) useless JavaScript effect.<br />
This is not, though, a diatribe. I don&#8217;t say one shouldn&#8217;t use JavaScript at all. on the contrary, I say one should use it <span class="caps">everywhere he can</span>. It has its undisputed advantages, both regarding the space management and the aesthetics of the presentation. But one should be very careful when deciding <span class="caps">where</span> he can use it.<br />
This article is rather a note to self than the starting point of an eventual debate. Like many other web design decisions, using JavaScript is a matter of necessity and personal taste. I only wanted to remember myself to only use JS when necessary and especially when there&#8217;s a possibility for users with JS disabled browsers to reach the information is some other way.<br />
To see what I mean, here&#8217;s the printscreen of a very popular WordPress theme, viewed with JS disabled:<br />
<a href="http://wp-content-themes.com/wp-content/uploads/2009/06/javascript-disabled.jpg"><img src="http://wp-content-themes.com/wp-content/uploads/2009/06/javascript-disabled.jpg" alt="javascript-disabled" title="javascript-disabled" width="548" height="380" class="alignnone size-full wp-image-289" /></a><br />
PS Coming up soon: how to create a newspaper-style theme for WordPress, the resulting theme and a grid system.</p>


<p>Related posts:<ol><li><a href='http://wp-content-themes.com/optimal-title-in-wordpress/24' rel='bookmark' title='Permanent Link: Optimal title in Wordpress'>Optimal title in Wordpress</a></li>
<li><a href='http://wp-content-themes.com/how-to-easily-change-the-widgets-markup/304' rel='bookmark' title='Permanent Link: How to easily change the widgets&#8217; markup'>How to easily change the widgets&#8217; markup</a></li>
<li><a href='http://wp-content-themes.com/css-vs-firefox-vs-cpu/119' rel='bookmark' title='Permanent Link: CSS vs Firefox vs CPU'>CSS vs Firefox vs CPU</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheThemeMuseum/~4/Oc-26-Uf3oY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wp-content-themes.com/on-using-javascript/288/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wp-content-themes.com/on-using-javascript/288</feedburner:origLink></item>
		<item>
		<title>Get full control over the placement of Adsense ads in single posts</title>
		<link>http://feedproxy.google.com/~r/TheThemeMuseum/~3/DHjsCoww51o/281</link>
		<comments>http://wp-content-themes.com/get-full-control-over-the-placement-of-adsense-ads/281#comments</comments>
		<pubDate>Sat, 23 May 2009 19:10:04 +0000</pubDate>
		<dc:creator>Delicia</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[Adsense]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[posts]]></category>

		<guid isPermaLink="false">http://wp-content-themes.com/?p=281</guid>
		<description><![CDATA[As you know, Adsense ads perform best when they&#8217;re embeded in the main content. But, as you also know, the content of a WordPress blog is displayed by a tiny template tag, i.e. the_content(). So, theoretically, you don&#8217;t have many options when it comes to deciding where the ad will appear. Using the default code [...]]]></description>
			<content:encoded><![CDATA[<p>As you know, Adsense ads perform best when they&#8217;re embeded in the main content. But, as you also know, the content of a WordPress blog is displayed by a tiny template tag, i.e. the_content(). So, theoretically, you don&#8217;t have many options when it comes to deciding where the ad will appear. Using the default code of a common WordPress theme, you can only place ads above or below the content of a single post.<br />
In this article, I&#8217;ll show you how to display Adsense ads anywhere inside a post. I mean <em>anywhere</em>. How to control the ads&#8217; position. How to display multiple ad units in particular posts and how to disable them in other ones. And especially I&#8217;ll show you how to <em>automatically</em> do all these things.<br />
<span id="more-281"></span><strong>The common practice</strong><br />
The common practice (you can see it implemented on this blog) is to insert an ad <em>above</em> the content and display it <em>inside</em> through styling. The code will be:</p>
<div class="dean_ch" style="white-space: wrap;">
&lt;div style=<span class="st0">&quot;float:left;margin-right:10px&quot;</span>&gt;<br />
&lt;!&#8211;the Adsense code goes here&#8211;&gt;<br />
&lt;/div&gt;<br />
<span class="kw2">&lt;?php</span> the_content<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="kw2">?&gt;</span><br />
&nbsp;</div>
<p>(The style doesn&#8217;t have to be inline; you can also use a selector.)<br />
This script will display an ad in the upper left area of a post. But what if you want to place the ad in the middle of the text? Or in the bottom area? And what if you want to place multiple ad units in posts that perform well in search rankings? Or to disable ads in the latest posts, so that your regular readers didn&#8217;t get annoyed? To be able to do all these things, you need to somehow get control over the content block that WordPress dynamically displays.<br />
<strong>Using a shortcode</strong><br />
The shortcode solution consists in inserting a little piece of PHP (a function containing the Adsense code) in the functions.php file and calling the ad while creating a new post (or while editing an old one); to call the ad, you&#8217;ll use the &#8220;[adsense]&#8221; shortcode (without the double curly quotes) in the HTML mode of the text editor. The function was written by <a href="http://www.wprecipes.com/how-to-embed-adsense-anywhere-on-your-posts">Jean-Baptise Jung</a>:</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="kw2">function</span> showads<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="st0">&#8216;&lt;!&#8211;your Adsense code goes here&#8211;&gt;<br />
&#8216;</span>;<br />
<span class="br0">&#125;</span> <br />
add_shortcode<span class="br0">&#40;</span><span class="st0">&#8216;adsense&#8217;</span>, <span class="st0">&#8217;showads&#8217;</span><span class="br0">&#41;</span>;<br />
&nbsp;</div>
<p>The shortcode will allow you to place one or two/three ad units anywhere inside the content. You can even align the ads within the text, using an inline style or a selector, for instance:</p>
<div class="dean_ch" style="white-space: wrap;">
&lt;div class=&quot;ads&quot; style=&quot;float:left;margin:right:10px&quot;&gt;<br />
[adsense]<br />
&lt;/div&gt;<br />
or <br />
&lt;div class=&quot;alignleft&quot;&gt;&lt;!&#8211;the theme you&#8217;re using should already have a style for this class&#8211;&gt;<br />
[adsense]<br />
&lt;/div&gt;<br />
&nbsp;</div>
<p>Tha main drawback of this solution is that you always have to remember to insert the shortcode when creating a new post. And this may be quite a challenge. I know that, ideally, one should be very careful before pressing the &#8220;Publish&#8221; button, read the text twice, select the proper keywords and so on, but in the real world things are a little bit different. If you published a few posts in a row and your attention is diminished, or if you&#8217;re tired or distracted, it&#8217;s probable to simply forget to perform all these repetitive tasks. Then you&#8217;d have to edit the post again and again (to asign it to a category, to add some tags, correct a misspell or insert a adsense shortcode. We&#8217;ve all been there. Editing a published post isn&#8217;t essentially a bad thing when moderately used, but the abuse has its dark sides: it is boring, it sends useless pings (and you&#8217;d run the risk to get penalized by some search engines), and it might republish the post in the RSS flux, which would probably irritate your regular readers. So, practically, you need a way to tell WordPress to remember you insert the Adsense shortcode in the posts you create.<br />
<strong>Automatic shortcodes</strong><br />
One of the great things about WordPress is that you actually can talk to it. Of course, you need to speak its tongue, but you can be sure it will answer you back.<br />
Applying this general principle to our matter, we can ask WordPress to automatically insert the Adsense shortcode in the text editor. To do this, we&#8217;ll adapt a filter written by <a href="http://justintadlock.com/archives/2009/04/05/how-to-preset-text-in-the-wordpress-post-editor">Justin Tadlock</a>:</p>
<div class="dean_ch" style="white-space: wrap;">
add_filter<span class="br0">&#40;</span> <span class="st0">&#8216;default_content&#8217;</span>, <span class="st0">&#8216;my_editor_content&#8217;</span> <span class="br0">&#41;</span>;<br />
<span class="kw2">function</span> my_editor_content<span class="br0">&#40;</span> <span class="re0">$content</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="re0">$content</span> = <span class="st0">&#8216;&lt;div style=&quot;float:left;margin-right:10px&quot;&gt;[adsense]&lt;/div&gt;&#8217;</span>;<br />
<span class="kw1">return</span> <span class="re0">$content</span>; <br />
<span class="br0">&#125;</span><br />
&nbsp;</div>
<p>NB When using Justin&#8217;s filter to preset some HTML, replace the double quoutes in the original code with single quotes; otherwise, you&#8217;ll get a syntax error.<br />
Afther having added the code above to the theme&#8217;s functions, the text editor of your blog will look like this:<br />
<img src="http://wp-content-themes.com/wp-content/uploads/2009/05/editor.png" alt="text editor" title="editor" width="522" height="364" class="alignnone size-full wp-image-282" /><br />
<strong>The full code</strong><br />
The full code you&#8217;ll have to add in the functions.php file is:</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="kw2">function</span> showads<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="st0">&#8216;&lt;!&#8211;your Adsense code goes here&#8211;&gt;<br />
&#8216;</span>;<br />
<span class="br0">&#125;</span> <br />
add_shortcode<span class="br0">&#40;</span><span class="st0">&#8216;adsense&#8217;</span>, <span class="st0">&#8217;showads&#8217;</span><span class="br0">&#41;</span>;</p>
<p>
add_filter<span class="br0">&#40;</span> <span class="st0">&#8216;default_content&#8217;</span>, <span class="st0">&#8216;my_editor_content&#8217;</span> <span class="br0">&#41;</span>;<br />
<span class="kw2">function</span> my_editor_content<span class="br0">&#40;</span> <span class="re0">$content</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="re0">$content</span> = <span class="st0">&#8216;&lt;div style=&quot;float:left;margin-right:10px&quot;&gt;[adsense]&lt;/div&gt;&#8217;</span>;<br />
<span class="kw1">return</span> <span class="re0">$content</span>; <br />
<span class="br0">&#125;</span><br />
&nbsp;</div>
<p>Applications<br />
By combining the two scripts by Jean-Baptiste Jung and by Justin Tadlock in the way I presented, you&#8217;ll get to:</p>
<ul>
<li>display and style Adsense ad units anywhere in the content (just write above and/or below the styled Adsense shortcode you&#8217;ll find in the text editor every time you create a new post);</li>
<li>easily change the position and placement of an ad (you can float it to left or to right in any single post by only changing the inline declarations, e.g. &#8220;float:right;margin-left:10px&#8221;;</li>
<li>disable ads in particulr posts by only deleting the automatically displayed shortcode;</li>
<li>place <a href="http://fictions.wp-content-themes.com/how-to-simulate-spontaneity/42">differently styled ad units</a> on selected posts (just copy/paste the automatic shortcode and change its style according to the ad unit&#8217;s context);</li>
<li>benefit of the advantages offered by powerful Adsense related plugins without conflicting with the Adsense Program Policy (plugins are pieces of software, so, formally, you&#8217;re not allowed to paste Adsense code in their files; functions.php, on the other hand, behaves like a plugin but is definitely a template file).</li>
</ul>
<p><strong>Bonus </strong><br />
Using this model, you can get <a href="http://www.smashingmagazine.com/2009/02/02/mastering-wordpress-shortcodes/">any shortcode</a> automatically appear in the text editor of your blog.<br />
<strong>Drawbacks</strong><br />
The solution i exposed has three drawbacks:</p>
<ol>
<li>you can use only one ad format;</li>
<li>you can only use the HTML mode of the text editor;</li>
<li>the automatically embeded code won&#8217;t work for older posts (you still have to manually edit them).</li>
</ol>
<p><strong>Other possibilities</strong><br />
Theoretically, it should be possible to automatically display ads only in posts older than x days, but the eventual filter would annulate the advantages listed above. I said &#8220;theoretically&#8221; because I got the idea while writing this article, so I couldn&#8217;t explore it. I hope I&#8217;ll find the time (and will have the skills) to do it.<br />
<strong>Demo and download</strong><br />
You can see this solution implemented on my new <a href="http://fictions.wp-content-themes.com/">demo blog</a> &#8211; it is run by my mean boss <img src='http://wp-content-themes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  who publishes there his crazy ideas in automatic translation mode.<br />
NB To see it, please select the <em>Doc</em> theme in the theme switcher.<br />
I prepared two files for download. The first one is <a href="http://wp-content-themes.com/wp-content/uploads/2009/05/functions-php.zip">functions.php</a>. If your blog theme doesn&#8217;t already have such a file (and, of course, if you want to have full control over the placement of the Adsense ads displayed on your blog), download the zip archive, extract the file and upload it in your blog theme directory.<br />
The second file is <a href="http://wp-content-themes.com/wp-content/uploads/2009/05/functions-txt.zip">functions.txt</a>. If your blog theme already has a functions.php file, download this archive, extract the text file, copy its content and paste it in the existing functions file, just <span class="caps">above</span> the <code>?&gt;</code> signs.<br />
NB Don&#8217;t forget to replace <code>&lt;!--your Adsense code goes here--&gt;</code> in the downloaded files with your Adsense code.<br />
Cautions<br />
Please don&#8217;t touch the first and the last line in the functions.php file, or your blog will magically disappear (I&#8217;m kidding, it won&#8217;t disappear, it will only display a white page).<br />
Please don&#8217;t confuse the php and the txt files you might download here; you risk either to get nothing changing, or to get a fatal error.<br />
All along this article, I assumed you knew the Adsense Program Policy (especially regarding the ad placements).<br />
Finally, and most important thing, if you&#8217;re not familiar with PHP and with editing template files, you better ask someone to help you.</p>
<p>PS I take no credit for the solution I presented here. I only combined and played around with two existing pieces of code. </p>


<p>Related posts:<ol><li><a href='http://wp-content-themes.com/how-to-style-every-single-post/75' rel='bookmark' title='Permanent Link: How to style every single post'>How to style every single post</a></li>
<li><a href='http://wp-content-themes.com/how-to-easily-change-the-widgets-markup/304' rel='bookmark' title='Permanent Link: How to easily change the widgets&#8217; markup'>How to easily change the widgets&#8217; markup</a></li>
<li><a href='http://wp-content-themes.com/wordpress-28-for-theme-authors/270' rel='bookmark' title='Permanent Link: WordPress 2.8 for theme authors'>WordPress 2.8 for theme authors</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheThemeMuseum/~4/DHjsCoww51o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wp-content-themes.com/get-full-control-over-the-placement-of-adsense-ads/281/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://wp-content-themes.com/get-full-control-over-the-placement-of-adsense-ads/281</feedburner:origLink></item>
		<item>
		<title>How to add a clickable image to the header of a WordPress theme</title>
		<link>http://feedproxy.google.com/~r/TheThemeMuseum/~3/-GzlNGDyF2U/273</link>
		<comments>http://wp-content-themes.com/how-to-add-a-clickable-image-to-the-header-of-a-wordpress-theme/273#comments</comments>
		<pubDate>Fri, 22 May 2009 11:41:48 +0000</pubDate>
		<dc:creator>Delicia</dc:creator>
				<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://wp-content-themes.com/?p=273</guid>
		<description><![CDATA[This is a very easy trick that anyone can implement. It takes only some image editing, a little bit of attention and patience and some template files editing.
1. You realized your blog needs a header image
A header image means branding. It speaks to your readers in a symbolic manner. Readers land on a page of [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very easy trick that anyone can implement. It takes only some image editing, a little bit of attention and patience and some template files editing.<br />
<strong>1. You realized your blog needs a header image</strong><br />
A header image means branding. It speaks to your readers in a symbolic manner. Readers land on a page of your blog, see the image, interpret it and associate it with the information you provide. The result is a rich cognitive experience; ideally, it should be like watching a beautiful documentary.<br />
<span id="more-273"></span><strong>2. Determine the image&#8217;s width (and height)</strong><br />
Before creating your header image, you need to know how wide it should be. First, you&#8217;ll need to look into header.php template file and spot the header&#8217;s selector. Ususally, it is <code>&lt;div id="header"&gt;</code>; it might also be <code>&lt;div id="logo"&gt;</code> or <code>&lt;div id="banner"&gt;</code>. (NB Some theme authors use class selectors instead of an id, soyou might find something like <code>&lt;div class="header"&gt;</code>.) After having identified the selector, look into style.css file and spot it. If it&#8217;s an id, it looks like <code>#header</code> (it may appear inside of an expression such as <code>(html) body #wrapper (or #container) #header (or #logo / #banner)</code>. Then look for the width declaration (for instance <code>width:940px;</code>).<br />
There might be ne width declaratioon associated with the selector. In this case, you should check if the element&#8217;s width was determined by some other selector. This is the case for many designs based on a grid. So go back to header.php and see if there&#8217;s another expression after the header&#8217;s selector, e.g. <code>&lt;div id="header" class="grid_16"&gt;</code>; this means that the element&#8217;s width is declared by the class selector, so, in style.css, look for something like <code>.grid_16 { width:940px; }</code>.<br />
It this still ain&#8217;t the case for the theme you use, then the header&#8217;s width must be inherited (if it&#8217;s true, you&#8217;ll see a <code>display:block</code> declaration under the header&#8217;s selector), so check the header&#8217;s parent&#8217;s width (generally, it is <code># / .wrapper or # / .container</code>).<br />
Ok, now you&#8217;ve determined the width. What about the height? Some themes declare a height for the header, but most of them don&#8217;t (unlike printed pages, a web page can virtually be infinite). Even if there&#8217;s a height declaration, e.g. <code>#header{width:940px;height:160px;}</code>, your image dimenssions don&#8217;t hav to comply to it. But if you intend to create a higher image, don&#8217;t forget to modify the declaration in the stylesheet, or even deete it). Otherwise, if the selector has an overhlow declaration, the browsers will &#8220;cut&#8221; the header image.<br />
Practically, the main constraint regards the width of your image. Acording to the type of blog you run, the image may be smaller or higher. There was / is a full screen header trend (<a href="http://ma.tt/" title="Photo Matt">Matt&#8217;s blog</a> is the most beautiful example), but this type of image won&#8217;t be suitable for any kind of blog. If your blog is personal, or about an artistic project, a design portofolio or about a product that needs to be branded, then a full screen header i a very elegant way to catch the reader&#8217;s attention. But if your blog provides larga amounts of information or calls to some action, then the header image should be moderately high. You&#8217;ll just need to find the right proportion between the branding necessity and the usability (in our documentary analogy, ballance the beautiful images and the information you offer).<br />
I insisted on this matter because a web page is perceived as a whole, so it&#8217;s elements must fit together.<br />
<strong>3. Create the image</strong><br />
I said, in the beginning of this article, that a header image speaks in a symbolic manner. This is the most important thing you should remember. It doesn&#8217;t (quite) matter whether you&#8217;re a Photoshop / Corel Draw / Illustrator / GIMP / Inkscape master or you only use Microsoft Paint; just express yourself or spread your message. Of course, being familiar with a powerful image editing software is desirable, but, if you&#8217;re not, you could try to get satisfactory results by other means. I know people who create images using Word documents (screenshots) and Paint; others use Powerpoint. Although it is unusual, I think it&#8217;s a good practice, for it will help you develop a visual taste and will eventually make you wish you&#8217;d have better image editing skills.<br />
So, to conclude this section, the header image creation process should be determined by three axes:</p>
<ol>
<li> a semiotic axis, your message to the world; the image will say something about you or about your blog;</li>
<li>an artistic axis, the visual form of your message;</li>
<li>an architectural axis, the smooth integration of the image into the layout; this axis transcends the image, but you should also remember to keep a ballance within the image.</li>
</ol>
<p><strong>4. Add the clickable header image</strong><br />
At this point, you have a proper header image. First, you&#8217;ll need to publish it somewhere on the web, preferably on your blog. If you&#8217;re not comfortable with using CPanel (or any other software your hosting provider chose to give you access to the server), just use the WordPress inbuilt image uploader. Create a new post, upload the image (you don&#8217;t need to write anything), copy the image&#8217;s url (it will look like http://www.example.com/wp-content/uploads/2009/05/header.png) and press the &#8220;Save all changes&#8221; button.<br />
<div id="attachment_275" class="wp-caption alignnone" style="width: 590px"><a href="http://wp-content-themes.com/wp-content/uploads/2009/05/header1.png"><img src="http://wp-content-themes.com/wp-content/uploads/2009/05/header1.png" alt="Upload a header image" title="header1" width="580" height="407" class="size-full wp-image-275" /></a><p class="wp-caption-text">Upload a header image</p></div><br />
Now let&#8217;s write the HTML that will display the image:</p>
<div class="dean_ch" style="white-space: wrap;">&lt;img src=&quot;http://www.example.com/wp-content/uploads/2009/05/header.png&quot; alt=&quot;your blog name or some words describing it&quot; width=&quot;960&quot; height=&quot;200&quot; /&gt;</div>
<p>The next step: making the image clickable:</p>
<div class="dean_ch" style="white-space: wrap;">&lt;a href=&quot;http://www.example.com/&quot; title=&quot;some title&quot;&gt;&lt;img src=&quot;http://www.example.com/wp-content/uploads/2009/05/header.png&quot; alt=&quot;your blog name or some words describing it&quot; width=&quot;960&quot; height=&quot;200&quot; /&gt;&lt;/a&gt;</div>
<p>NB Please remember to replace the example urls with the actual one, set a proper alt tag and provide the actual values of the width and height tags.<br />
Finally, insert the image. Edit header.php and spot once again the header&#8217;s selector. You&#8217;ll probably see something like this:</p>
<div class="dean_ch" style="white-space: wrap;">&lt;div id=<span class="st0">&quot;header&quot;</span>&gt;<br />
&lt;h1&gt;&lt;a href=<span class="st0">&quot;&lt;?php echo get_settings(&#8216;home&#8217;); ?&gt;&quot;</span>&gt;&lt;?php bloginfo<span class="br0">&#40;</span><span class="st0">&#8216;name&#8217;</span><span class="br0">&#41;</span>; ?&gt;&lt;/a&gt;&lt;/h1&gt;<br />
&lt;h2&gt;&lt;?php bloginfo<span class="br0">&#40;</span><span class="st0">&#8216;description&#8217;</span><span class="br0">&#41;</span>; ?&gt;&lt;/h2&gt;<br />
&lt;/div&gt;</div>
<p>NB The headings and even the code may vary; this is only an example.<br />
Select the two PHP lines (the ones beginning with h1 and h2, or with h2 and h3 in other themes) and replace them with the clickable image code we&#8217;ve already written. For SEO reasons, you might want to nest the code inside of a heading. The final code should look like this:</p>
<div class="dean_ch" style="white-space: wrap;">&lt;div id=&quot;header&quot;&gt;<br />
&lt;h2&gt;&lt;a href=&quot;http://www.example.com/&quot; title=&quot;some title&quot;&gt;&lt;img src=&quot;http://www.example.com/wp-content/uploads/2009/05/header.png&quot; alt=&quot;your blog name or some words describing it&quot; width=&quot;960&quot; height=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;<br />
&lt;/div&gt;</div>
<p>and that&#8217;s almost it. Your blog&#8217;s header image is now visible and clickable.<br />
<strong>5. Clean the image&#8217;s look and get a consistent feel</strong><br />
There are very good chances that your brand new header image had an odd border (in IE6 it&#8217;s really ugly). To get rid of it, edit style.css and add this line:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re0">#header</span> a img<span class="br0">&#123;</span>border<span class="re2">:<span class="nu0">0</span></span><span class="br0">&#125;</span></div>
<p>Save. Refresh. The border is gone.<br />
Now take a very attentive look at the overall result. Not just at the header, but at the entire page. See if the theme&#8217;s colors fit the image&#8217;s colors. If they don&#8217;t, you should use a tool that generates color schemes from an image <a href="http://jrm.cc/color-palette-generator/">Color Palette Generator</a> is a nice one, but you can find plenty on the web). Now, that you have a consistent color scheme (provided you have used matching colors when creating the image), you can <a href="http://wp-content-themes.com/how-to-easily-modify-the-colors-of-a-wordpress-theme/219">modify the colors of your blog&#8217;s theme</a>.<br />
PS I should also write a tutorial on how to set a backgroun image for the header of your blog.</p>


<p>Related posts:<ol><li><a href='http://wp-content-themes.com/how-to-easily-modify-the-colors-of-a-wordpress-theme/219' rel='bookmark' title='Permanent Link: How to easily modify the colors of a WordPress theme'>How to easily modify the colors of a WordPress theme</a></li>
<li><a href='http://wp-content-themes.com/doc-a-free-minimal-wordpress-27-theme/257' rel='bookmark' title='Permanent Link: Doc &#8211; a free minimal WordPress 2.7 theme'>Doc &#8211; a free minimal WordPress 2.7 theme</a></li>
<li><a href='http://wp-content-themes.com/blackcat-free-wordpress-theme-for-cat-lovers/203' rel='bookmark' title='Permanent Link: BlackCat &#8211; free WordPress theme for cat lovers'>BlackCat &#8211; free WordPress theme for cat lovers</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheThemeMuseum/~4/-GzlNGDyF2U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wp-content-themes.com/how-to-add-a-clickable-image-to-the-header-of-a-wordpress-theme/273/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wp-content-themes.com/how-to-add-a-clickable-image-to-the-header-of-a-wordpress-theme/273</feedburner:origLink></item>
		<item>
		<title>Doc – a free minimal WordPress 2.7 theme</title>
		<link>http://feedproxy.google.com/~r/TheThemeMuseum/~3/Nvm-iYTJFOM/257</link>
		<comments>http://wp-content-themes.com/doc-a-free-minimal-wordpress-27-theme/257#comments</comments>
		<pubDate>Sun, 10 May 2009 10:29:00 +0000</pubDate>
		<dc:creator>Delicia</dc:creator>
				<category><![CDATA[free themes]]></category>
		<category><![CDATA[one-column]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[white]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://wp-content-themes.com/?p=257</guid>
		<description><![CDATA[Doc is a one-column theme, with a fixed width and lots of white space. It is intended to spoil your content and to satisfy your users&#8217; reading pleasure.
Doc is minimal. I mean really minimal: it has the simplest layout and the most basic color scheme. Anyways, this simplicity only affects the design; the code is [...]]]></description>
			<content:encoded><![CDATA[<p><em>Doc</em> is a one-column theme, with a fixed width and lots of white space. It is intended to spoil your content and to satisfy your users&#8217; reading pleasure.<br />
Doc is minimal. I mean really minimal: it has the simplest layout and the most basic color scheme. Anyways, this simplicity only affects the design; the code is complete and the usability wasn&#8217;t neglected.<br />
<strong>The story behind</strong><br />
Like you all, I spend a lot of time reading word processed documents. The image of a Pages, Word or Writer document is so familiar, that I can&#8217;t conceive my life without it. It&#8217;s like coffee. I thought that maybe that&#8217;s the case for you also, so I designed a theme impersonating such a document.<br />
The default font is Times New Roman for consistency), but you can change it under the &#8220;body&#8221; declaration in the style.css file. The print stylesheet aims to reproduce a regular word document; if you want to display more then the post itself on the print version, just delete the respective selectors in the print stylesheet, under the line containing the declaration <code>{display:none}</code>.<br />
Doc was designed for personal or non profit blogs. Doc wasn&#8217;t designed for advertisements; if you intend to place ads on your pages, you should style them properly.</p>
<h2>Doc&#8217;s features</h2>
<div class="ads g12 alpha">[adsense]</div>
<ul>
<li>valid strict XHTML 1.0 markup;</li>
<li>valid CSS 2.1;</li>
<li>really fast loading: for the test blog (without gzip compression &#8211; 0.56&#8242; with a T1 1.44 Mbps connection; 2.25&#8242; with a ISDN 128k connection; 12.17 with a 28k dial up connection); you can check it on <a href="http://www.websiteoptimization.com/services/analyze/">websiteoptimization.com</a>;</li>
<li>search engine optimized;</li>
<li>fixed width (fit to 1024px screens);</li>
<li>custom templates (404.php, error message, archive page, page without comments);</li>
<li>3 widgetized areas in the lower section;</li>
<li>sticky posts (italics);</li>
<li>gravatars;</li>
<li>threaded comments;</li>
<li>social bookmarks (no plugin needed);</li>
<li>white space, for the sake of your readers&#8217; eyes;</li>
<li>Microsoft Word-like design;</li>
<li>print stylesheet.</li>
</ul>
<p><strong>Caution</strong><br />
Doc can only be used with WordPress 2.7 and above.<br />
<strong>Usage</strong><br />
Just use it like any other theme: download the zip file, extract the theme folder, upload it on the server and activate the theme in the appearence tab of the admin area.<br />
<strong>Customization and better performance</strong><br />
You can <a href="http://wp-content-themes.com/how-to-easily-modify-the-colors-of-a-wordpress-theme/219">customize the colors</a> or even the layout (if you&#8217;re familiar with CSS).<br />
Doc was designed for speed, but you can speed it even more, by replacing the PHP calls with plain HTML (I shoul write a tutorial about this).<br />
<strong>Licence</strong><br />
Doc is released under a GNU/GPL licence; you are allowed to freely use it, modify it and distribute it with the condition of preserving the licence and the attribution.<br />
<img src="http://wp-content-themes.com/wp-content/uploads/2009/05/screenshot.png" alt="screenshot" title="Doc small screenshot" width="300" height="225" class="alignnone size-full wp-image-259" /><br />
<img src="http://wp-content-themes.com/wp-content/uploads/2009/05/doc.png" alt="doc large screenshot" title="doc" width="580" height="439" class="alignnone size-full wp-image-260" /><br />
<img src="http://wp-content-themes.com/wp-content/uploads/2009/05/doc-footer.png" alt="doc footer" title="doc-footer" width="580" height="439" class="alignnone size-full wp-image-261" /><br />
<img src="http://wp-content-themes.com/wp-content/uploads/2009/05/doc-comments.png" alt="doc comments" title="doc-comments" width="580" height="294" class="alignnone size-full wp-image-262" /></p>
<h2>Demo and download</h2>
<p><a href="http://fictions.wp-content-themes.com/">Demo blog</a><br />
<a title="Doc minimal WordPress theme" href="http://wp-content-themes.com/wp-content/uploads/2009/05/doc.zip"><img class="alignnone size-full wp-image-153" title="download" src="http://wp-content-themes.com/wp-content/uploads/2009/04/download.png" alt="download" width="64" height="64"></a><br />
That would be all. Happy blogging.<br />
<strong>Later edit</strong><br />
Pictures not appearing on the first page seem to be an important issue. Unfortunately I cannot find the time right now to release a new version of Doc with options included; hopefully it will be available in a couple of months. Anyhow, I&#8217;ll provide two alternatives.<br />
1. Full posts on the homepage (as well as on category, tag and time-based archives).<br />
You&#8217;ll have to do a little editing, but it&#8217;s only a matter of copy/paste. Copy this document (<a href="http://wp-content-themes.com/wp-content/uploads/2009/05/index-full-post-on-homepage.txt">index-full post on homepage.txt</a>). In the admin area, under the Appearance tag, go to Editor and select Main Index Template (index.php). Select the entire content of the document and replace it with the text you&#8217;ve just copied.<br />
The main drawback of this method is that the images will only appear if they&#8217;re above the &#8220;more&#8221; quicktag. Additionally, you won&#8217;t be able to control the size of the pictures displyed; WordPress will preserve their original width and height.<br />
2. The second alternative is more elegant, but involves two file editing actions (don&#8217;t worry, it&#8217;s still a copy/paste matter). You&#8217;ll need to download this archive (<a href="http://wp-content-themes.com/wp-content/uploads/2009/05/excerpt-and-image.zip">excerpt-and-image.zip</a>); it contains two files: functions.txt and index-excerpt plus image.txt. Go to Appearance > Editor, select Theme Functions (functions.php) and replace the existing content with the content of the functions.txt you&#8217;ve found in the archive; then replace the current content of the Main Index Template (index.php) with the text in index-excerpt plus image.txt.<br />
At this point, the first picture of each post will be automatically displayed. The pictures are resized (300px wide ane 225 px heigh) and aligned to left. If you&#8217;re plased with these settings, you&#8217;re done.<br />
<em>Possible customizations</em><br />
You can control which image will get displayed on the front page, its size, its position. To do this, you only have to spot a line in the Main Index Template (index.php):</p>
<div class="dean_ch" style="white-space: wrap;">&lt;div <span class="kw2">class</span>=<span class="st0">&quot;thumbnail&quot;</span>&gt;&lt;?php images<span class="br0">&#40;</span><span class="st0">&#8216;1&#8242;</span>, <span class="st0">&#8216;300&#8242;</span>, &nbsp;<span class="st0">&#8216;225&#8242;</span>, <span class="st0">&#8216;alignleft&#8217;</span>, <span class="st0">&#8216;false&#8217;</span><span class="br0">&#41;</span>; ?&gt;&lt;/div&gt;</div>
<p>The arguments:<br />
1 = the first image; (2=second image), etc;<br />
300 = the picture&#8217;s width; / replace it with another numeric value;<br />
225 = the picture&#8217;s height;<br />
alignleft = picture floating left and wrapped by text; / you can replace it with: &#8216;alignright&#8217; or &#8216;alignnone&#8217; (in this case, the text will be pushed under the picture).<br />
false = image not clickable; / true = clickable image (this argument should&#8217;t be wrapped by single quotes, otherwise the images are clickable by default).<br />
Hope it was clear enough. If you&#8217;re havng any trouble in implementing this, please let me know.<br />
PS If you want to add some special styles to these images, simply use the &#8220;thumbnail&#8221; class.</p>


<p>Related posts:<ol><li><a href='http://wp-content-themes.com/bleen-a-grue-green-and-blue-free-wordpress-theme/4' rel='bookmark' title='Permanent Link: Bleen &#8211; A grue (green and blue) free Wordpress theme'>Bleen &#8211; A grue (green and blue) free Wordpress theme</a></li>
<li><a href='http://wp-content-themes.com/orangejuice-a-free-fluid-wordpress-27-theme/109' rel='bookmark' title='Permanent Link: OrangeJuice &#8211; a free fluid WordPress 2.7 theme'>OrangeJuice &#8211; a free fluid WordPress 2.7 theme</a></li>
<li><a href='http://wp-content-themes.com/typogriph-a-free-fluid-wordpress-27-theme/150' rel='bookmark' title='Permanent Link: Typogriph &#8211; a free fluid WordPress 2.7 theme'>Typogriph &#8211; a free fluid WordPress 2.7 theme</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheThemeMuseum/~4/Nvm-iYTJFOM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wp-content-themes.com/doc-a-free-minimal-wordpress-27-theme/257/feed</wfw:commentRss>
		<slash:comments>23</slash:comments>
		<feedburner:origLink>http://wp-content-themes.com/doc-a-free-minimal-wordpress-27-theme/257</feedburner:origLink></item>
		<item>
		<title>24 beautiful wood colors for your backgrounds</title>
		<link>http://feedproxy.google.com/~r/TheThemeMuseum/~3/rLK1Qvqdqoo/227</link>
		<comments>http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227#comments</comments>
		<pubDate>Mon, 04 May 2009 13:06:39 +0000</pubDate>
		<dc:creator>Delicia</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[colors]]></category>
		<category><![CDATA[dark]]></category>
		<category><![CDATA[light]]></category>
		<category><![CDATA[wood]]></category>

		<guid isPermaLink="false">http://wp-content-themes.com/?p=227</guid>
		<description><![CDATA[If you take a look at a design showcse, you&#8217;ll notice that there definitely is a &#8220;wood trend&#8221; out there. And it&#8217;s been there for a couple of years now. Desks, tables, fences, wood walls, cork boards, blackboards, you name it. Actually this &#8220;wood trend&#8221; is a part of a wider trend, which one could [...]]]></description>
			<content:encoded><![CDATA[<p>If you take a look at a design showcse, you&#8217;ll notice that there definitely is a &#8220;wood trend&#8221; out there. And it&#8217;s been there for a couple of years now. Desks, tables, fences, wood walls, cork boards, blackboards, you name it. Actually this &#8220;wood trend&#8221; is a part of a wider trend, which one could call &#8220;figurative&#8221;, defining itself on &#8220;real&#8221; (i.e. non-virtual) coordinates and trying to evoke a familiar environment susceptible to give to the user a hint about website&#8217;s identity. <span id="more-227"></span>I should write a post on the use of visual identifying metaphors (and other means of expression) within the visual discourse of this massive trend, but I&#8217;m quite hesitant to add it on my &#8220;to do list&#8221;; maybe the next weekend.<br />
Wood is a coomon presence in our work or domestic environment; plus, it is a strong metaphor, displaying its meanings in a wide range of fields. Under these circumstances, there&#8217;s no wonder we find so many collections of wood textures and patterns. But if you don&#8217;t want to use a background image,for various reasons including bandwidth and loading speed, you can still use a background color evoking wood. Here&#8217;s a little collection:<br />

<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/f4d68e' title='f4d68e'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/f4d68e-150x150.png" class="attachment-thumbnail" alt="#f4d68e" title="f4d68e" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/f1e1cc' title='f1e1cc'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/f1e1cc-150x150.png" class="attachment-thumbnail" alt="#f1e1cc" title="f1e1cc" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/eed49a' title='eed49a'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/eed49a-150x150.png" class="attachment-thumbnail" alt="#eed49a" title="eed49a" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/ebcd91' title='ebcd91'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/ebcd91-150x150.png" class="attachment-thumbnail" alt="#ebcd91" title="ebcd91" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/e8c7b7' title='e8c7b7'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/e8c7b7-150x150.png" class="attachment-thumbnail" alt="#e8c7b7" title="e8c7b7" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/deb887' title='deb887'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/deb887-150x150.png" class="attachment-thumbnail" alt="#deb887" title="deb887" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/d8cfad' title='d8cfad'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/d8cfad-150x150.png" class="attachment-thumbnail" alt="#d8cfad" title="d8cfad" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/c49873' title='c49873'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/c49873-150x150.png" class="attachment-thumbnail" alt="#c49873" title="c49873" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/c9a971' title='c9a971'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/c9a971-150x150.png" class="attachment-thumbnail" alt="#c9a971" title="c9a971" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/c9a46f' title='c9a46f'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/c9a46f-150x150.png" class="attachment-thumbnail" alt="#c9a46f" title="c9a46f" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/c5c3ae' title='c5c3ae'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/c5c3ae-150x150.png" class="attachment-thumbnail" alt="#c5c3ae" title="c5c3ae" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/b1885c' title='b1885c'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/b1885c-150x150.png" class="attachment-thumbnail" alt="#b1885c" title="b1885c" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/ab8980' title='ab8980'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/ab8980-150x150.png" class="attachment-thumbnail" alt="#ab8980" title="ab8980" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/a49782' title='a49782'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/a49782-150x150.png" class="attachment-thumbnail" alt="#a49782" title="a49782" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/a3815a' title='a3815a'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/a3815a-150x150.png" class="attachment-thumbnail" alt="#a3815a" title="a3815a" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/a2846b' title='a2846b'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/a2846b-150x150.png" class="attachment-thumbnail" alt="#a2846b" title="a2846b" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/attachment/928174' title='928174'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/928174-150x150.png" class="attachment-thumbnail" alt="#928174" title="928174" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/836e5d' title='836e5d'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/836e5d-150x150.png" class="attachment-thumbnail" alt="#836e5d" title="836e5d" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/734c40' title='734c40'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/734c40-150x150.png" class="attachment-thumbnail" alt="#734c40" title="734c40" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/9c8964' title='9c8964'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/9c8964-150x150.png" class="attachment-thumbnail" alt="#9c8964" title="9c8964" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/9b8e7f' title='9b8e7f'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/9b8e7f-150x150.png" class="attachment-thumbnail" alt="#9b8e7f" title="9b8e7f" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/7d5646' title='7d5646'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/7d5646-150x150.png" class="attachment-thumbnail" alt="#7d5646" title="7d5646" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/7a5f4e' title='7a5f4e'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/7a5f4e-150x150.png" class="attachment-thumbnail" alt="#7a5f4e" title="7a5f4e" /></a>
<a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/attachment/6e5343' title='6e5343'><img width="150" height="150" src="http://wp-content-themes.com/wp-content/uploads/2009/05/6e5343-150x150.png" class="attachment-thumbnail" alt="#6e5343" title="6e5343" /></a>
</p>


<p>Related posts:<ol><li><a href='http://wp-content-themes.com/how-to-easily-modify-the-colors-of-a-wordpress-theme/219' rel='bookmark' title='Permanent Link: How to easily modify the colors of a WordPress theme'>How to easily modify the colors of a WordPress theme</a></li>
<li><a href='http://wp-content-themes.com/the-web-is-ugly/136' rel='bookmark' title='Permanent Link: The web is ugly'>The web is ugly</a></li>
<li><a href='http://wp-content-themes.com/css-vs-firefox-vs-cpu/119' rel='bookmark' title='Permanent Link: CSS vs Firefox vs CPU'>CSS vs Firefox vs CPU</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheThemeMuseum/~4/rLK1Qvqdqoo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227</feedburner:origLink></item>
		<item>
		<title>How to easily modify the colors of a WordPress theme</title>
		<link>http://feedproxy.google.com/~r/TheThemeMuseum/~3/knBmvgeiGJw/219</link>
		<comments>http://wp-content-themes.com/how-to-easily-modify-the-colors-of-a-wordpress-theme/219#comments</comments>
		<pubDate>Thu, 30 Apr 2009 13:27:00 +0000</pubDate>
		<dc:creator>Delicia</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[colors]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://wp-content-themes.com/?p=219</guid>
		<description><![CDATA[During the last few weeks, I&#8217;ve received lots of emails containig a recurrent question about changing the colors of the themes I created. In the beginning I thought it was fun to reply to those emails, but I soon relized that my squeduled tasks were weeping sad and lonely in their blank documents. So I [...]]]></description>
			<content:encoded><![CDATA[<p>During the last few weeks, I&#8217;ve received lots of emails containig a recurrent question about changing the colors of the themes I created. In the beginning I thought it was fun to reply to those emails, but I soon relized that my squeduled tasks were weeping sad and lonely in their blank documents. So I decided to write a little tutorial.<br />
<em>Note to self:</em> I should remember stop making crazy assumptions about how comfortable people feel when editing template files.<br />
<span id="more-219"></span><strong>General remarks</strong><br />
As you certainly know, the colors of a website are always put together according to some well established criteria provided by the <a href="http://en.wikipedia.org/wiki/Color_theory">color theory</a>. Just like clothes, some colors fit, while others get to create a disturbing mishmash.<br />
<img src="http://wp-content-themes.com/wp-content/uploads/2009/04/color-wheel.png" alt="color wheel" title="color-wheel" width="200" height="200" class="alignright size-full wp-image-220" />The best practice, when setting new colors for your blog, is either creating a color scheme using a tool (blender, schemer) or chosing an existing color palette (see this <a href="http://speckyboy.com/2008/01/13/top-10-resources-to-the-perfect-color-scheme-for-web-designers/">beautiful list compiled by Speckyboy</a>).<br />
<em>NB:</em>Not all colors look nice on big surfaces. If you&#8217;ve chosen a palette, you should check whether the colors you set for the background look too strident; you can do this by using an image editor, like Photoshop, GIMP, or even Microsoft Paint.<br />
Ok, from now on we&#8217;ll assume that you&#8217;ve chosen a beautiful color palette. What&#8217;s next?<br />
<strong>Edit the stylesheet</strong><br />
Under the &#8220;Appearence&#8221; section of the admin area of your blog, go to &#8220;Editor&#8221; and change the hexadecimal color values. These values look like <code>#xxxxxx</code> (or <code>#xxx</code>, for shorthand notations), where &#8220;x&#8221; is a alphanumeric character (from <em>a</em> to <em>f</em> and from <em>0</em> to <em>9</em>).<br />
<em>NB.</em> Before changing anything, please backup the style.css file. You never know what may occur.<br />
You need to know that stylesheets set generic color values, for the HTML tags, and specific values, for the markup elements. This means you&#8217;ll have to spot those tags and to identify the selectors.<br />
<em>The HTML tags</em></p>
<ul>
<li><code>body</code>: usually sets the background and the text colors;</li>
<li><code>a</code> sets the links color;</li>
<li><code>p</code> deals with the texts (stands for paragraph); it&#8217;s quite rare though to find any color declaration under this one;</li>
<li><code>h1...h6</code>: colors for headings;</li>
<li>occasionally <code>em</code> and <code>strong</code>, for italic and bold text;</li>
</ul>
<p><em>The markup selectors</em><br />
Markup selectors vary from one theme to another, so you&#8217;ll have to figure what are the ids and classes used by your theme. The most common are <code>wrapper / container, header, post, sidebar, footer</code> (but some theme authors may chose other selectors). Long story short, you only need to see the source of your blog (homepage, single post, other templates) and patiently write down the id and class selectors. Then you should check whether (or rather what) HTML tags have special styles according to their position in the markup (for instance <code>#header h1 / h2</code> will stand for the blog title, <code>#header h2 / h3</code> for the blog description and so on). Now, after having identified all these tags and selectors, you can change anything you want.<br />
<strong>Use the Theme Teaker plugin</strong><br />
The <a href="http://wordpress.org/extend/plugins/theme-tweaker/">Theme tweaker</a> plugin was written by <a href="http://www.thulasidas.com/">Manoj Thulasidas</a>; basically, it enables you to visually modify the colors of your WordPress blog; technically, it creates a style and embeds it in the <code>head</code> of your blog.<br />
I won&#8217;t insist in presenting it (actually the author provides a detailed description, and the plugin is very easy to use).<br />
<em>Please note:</em> If you use the plugin&#8217;s default settings, i.e. don&#8217;t generate a stylesheet or a child theme, your twaks will simply disappear when the plugin is deactivated.<br />
NB: While testing Theme Tweaker, I accidentally came across a bug, namely it won&#8217;t work for blogs that aren&#8217;t located in the root folder: if your blog&#8217;s url is example.com/blog and there&#8217;s another blog installed on example.com, the plugin will try to modify the look of the blog installed under the main domain.<br />
There&#8217;s really no conclusion for this post. I only hope you&#8217;ll find it useful (and be creative).</p>


<p>Related posts:<ol><li><a href='http://wp-content-themes.com/how-to-add-a-clickable-image-to-the-header-of-a-wordpress-theme/273' rel='bookmark' title='Permanent Link: How to add a clickable image to the header of a WordPress theme'>How to add a clickable image to the header of a WordPress theme</a></li>
<li><a href='http://wp-content-themes.com/24-beautiful-wood-colors-for-your-backgrounds/227' rel='bookmark' title='Permanent Link: 24 beautiful wood colors for your backgrounds'>24 beautiful wood colors for your backgrounds</a></li>
<li><a href='http://wp-content-themes.com/wordpress-28-for-theme-authors/270' rel='bookmark' title='Permanent Link: WordPress 2.8 for theme authors'>WordPress 2.8 for theme authors</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheThemeMuseum/~4/knBmvgeiGJw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wp-content-themes.com/how-to-easily-modify-the-colors-of-a-wordpress-theme/219/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://wp-content-themes.com/how-to-easily-modify-the-colors-of-a-wordpress-theme/219</feedburner:origLink></item>
	</channel>
</rss>
