<?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>Padd Solutions &#187; header image</title>
	<atom:link href="http://www.paddsolutions.com/tag/header-image/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paddsolutions.com</link>
	<description>We provide premium quality WordPress themes, tools, inspirations and functional web solutions to business owners and bloggers.</description>
	<lastBuildDate>Thu, 02 Feb 2012 10:08:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to Add a Custom Header Image</title>
		<link>http://www.paddsolutions.com/how-to-add-custom-header-image/</link>
		<comments>http://www.paddsolutions.com/how-to-add-custom-header-image/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 03:57:27 +0000</pubDate>
		<dc:creator>Dulce</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[header image]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.paddsolutions.com/?p=915</guid>
		<description><![CDATA[Hazy Halo is a WordPress theme that is similar to the popular Twenty Ten theme. Among the best features of Hazy Halo are the ability to customize the header image and highlight the Site Name. The header of your site is very important because it is the first thing that visitors see and it gives [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p><strong><a target="_blank" href="http://wpclassic.com/hazy-halo/">Hazy Halo</a></strong> is a WordPress theme that is similar to the popular Twenty Ten theme. Among the best features of Hazy Halo are the ability to customize the header image and highlight the Site Name. The header of your site is very important because it is the first thing that visitors see and it gives a lasting impression on them. It is one of the easiest ways to capture the attention of your target audience. This tutorial will guide you on how to create a theme like Hazy Halo which you can <a href="http://www.paddsolutions.com/how-to-add-custom-header-image/">add a custom header image</a>.</p>
<h2>Step 1. Create a directory for your default header images.</h2>
<p>Ideally, this would be in the images directory of your theme, i.e. %s/images/headers. Variable %s is a placeholder for your theme directory URI.</p>
<h2>Step 2. Add the following code to functions.php file.</h2>
<p>Note: This code was taken from Twenty Ten&#8217;s functions.php file.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'after_setup_theme'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'padd_theme_header_setup'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'padd_theme_header_setup'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>
 <span style="color: #000000; font-weight: bold;">function</span> padd_theme_header_setup<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 add_theme_support<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'post-thumbnails'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'HEADER_IMAGE'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'%s/images/headers/default-header.jpg'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'HEADER_IMAGE_WIDTH'</span><span style="color: #339933;">,</span> apply_filters<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'yourtheme_header_image_width'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">920</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'HEADER_IMAGE_HEIGHT'</span><span style="color: #339933;">,</span> apply_filters<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'yourtheme_header_image_height'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">225</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 set_post_thumbnail_size<span style="color: #009900;">&#40;</span> HEADER_IMAGE_WIDTH<span style="color: #339933;">,</span> HEADER_IMAGE_HEIGHT<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'NO_HEADER_TEXT'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 add_custom_image_header<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'padd_theme_header_img_style'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">register_default_headers<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span> <span style="color: #009900;">&#40;</span>
 <span style="color: #0000ff;">'film'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span> <span style="color: #009900;">&#40;</span>
 <span style="color: #0000ff;">'url'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'%s/images/headers/film.jpg'</span><span style="color: #339933;">,</span>
 <span style="color: #0000ff;">'thumbnail_url'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'%s/images/headers/film-thumbnail.jpg'</span><span style="color: #339933;">,</span>
 <span style="color: #0000ff;">'description'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Film'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'yourtheme'</span> <span style="color: #009900;">&#41;</span>
 <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
 <span style="color: #0000ff;">'pills'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span> <span style="color: #009900;">&#40;</span>
 <span style="color: #0000ff;">'url'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'%s/images/headers/pills.jpg'</span><span style="color: #339933;">,</span>
 <span style="color: #0000ff;">'thumbnail_url'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'%s/images/headers/pills-thumbnail.jpg'</span><span style="color: #339933;">,</span>
 <span style="color: #0000ff;">'description'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Pills'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'yourtheme'</span> <span style="color: #009900;">&#41;</span>
 <span style="color: #009900;">&#41;</span>
 <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
 <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'padd_theme_header_img_style'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
 <span style="color: #000000; font-weight: bold;">function</span> padd_theme_header_img_style<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
   	<span style="color: #cc00cc;">#header-img</span> <span style="color: #00AA00;">&#123;</span>
   		<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &lt;?php echo HEADER_IMAGE_HEIGHT<span style="color: #00AA00;">;</span> ?<span style="color: #00AA00;">&gt;</span>px<span style="color: #00AA00;">;</span>
  		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> &lt;?php echo HEADER_IMAGE_WIDTH<span style="color: #00AA00;">;</span> ?<span style="color: #00AA00;">&gt;</span>px<span style="color: #00AA00;">;</span>
   	<span style="color: #00AA00;">&#125;</span>
 	<span style="color: #cc00cc;">#header-img</span> img <span style="color: #00AA00;">&#123;</span>
 		<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
 		<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
 	<span style="color: #00AA00;">&#125;</span>
 	<span style="color: #cc00cc;">#header-img</span> h1<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#header-img</span> <span style="color: #cc00cc;">#desc</span> <span style="color: #00AA00;">&#123;</span>
 		<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
 	<span style="color: #00AA00;">&#125;</span>
 &lt;/style<span style="color: #00AA00;">&gt;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
 <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>This code will create a Header tab in the Appearance panel of your Dashboard which allows users to preview the default header image, upload an image from their computer, or select from the gallery of default header images packed with Hazy Halo. Aside from the customized header image, this code also utilizes post thumbnails on single post pages.</p>
<div id="attachment_939" class="wp-caption alignleft" style="width: 601px"><a href="http://www.paddsolutions.com/wp-content/uploads/2011/03/header-capture.jpg"><img class="size-full wp-image-939 " src="http://www.paddsolutions.com/wp-content/uploads/2011/03/header-capture.jpg" alt="Header Image Admin Options" width="591" height="418" /></a><p class="wp-caption-text">Header Image Admin Options</p></div>
<p>Here is a brief discussion of the code:</p>
<p>The add_action() function hooks a function on to a specific action.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'after_setup_theme'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'padd_theme_header_setup'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This line tells WordPress to run padd_theme_header_setup() when after_setup_theme finishes its execution.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> padd_theme_header_setup<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 add_theme_support<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'post-thumbnails'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'HEADER_IMAGE'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'%s/images/headers/default-header.jpg'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'HEADER_IMAGE_WIDTH'</span><span style="color: #339933;">,</span> apply_filters<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'yourtheme_header_image_width'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">920</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'HEADER_IMAGE_HEIGHT'</span><span style="color: #339933;">,</span> apply_filters<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'yourtheme_header_image_height'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">225</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 set_post_thumbnail_size<span style="color: #009900;">&#40;</span> HEADER_IMAGE_WIDTH<span style="color: #339933;">,</span> HEADER_IMAGE_HEIGHT<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'NO_HEADER_TEXT'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 add_custom_image_header<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'padd_theme_header_img_style'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The first line allows your theme to register support for the post thumbnails feature. This allows Hazy Halo to use a post-thumbnail in single posts that is big enough to replace the default header image. On the next line, you set the path of your default header image. In this code, default-header.jpg in the headers directory is set as the header image.</p>
<p>Next, the width and height of the header image are defined. If the image that is uploaded by the user is larger than the defined width and height, it is automatically cropped to the specified width and height. In this code, the header image&#8217;s width and height are set to 920px and 225px respectively.</p>
<p>NO_HEADER_TEXT is also set to true because we don&#8217;t want to allow changing the header text color. An additional styling for the Site Name is included in Hazy Halo and will be explained later in this tutorial.</p>
<p>You can also add a way for the custom header to be styled in the admin panel through the add_custom_image_header() function, which calls padd_theme_header_img_style.</p>
<p>The second set of code registers the default header images that are packaged with Hazy Halo, namely film.jpg and pills.jpg. You have to modify this code and place your header images and their corresponding thumbnails in the %s/images/headers/ directory.</p>
<p>The third set of code defines the css style for the header image in the admin panel of your dashboard. You don&#8217;t have to make any modifications to this code.</p>
<h2>Step 3. Add the following code to your header.php file.</h2>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
 <span style="color: #666666; font-style: italic;">// Check if this is a post or page, if it has a thumbnail, and if it's a big one</span>
 <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_singular<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> has_post_thumbnail<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span>
 <span style="color: #009900;">&#40;</span> <span style="color: #666666; font-style: italic;">/* $src, $width, $height */</span>
 <span style="color: #000088;">$image</span> <span style="color: #339933;">=</span> wp_get_attachment_image_src<span style="color: #009900;">&#40;</span> get_post_thumbnail_id<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post-thumbnail'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span>
 <span style="color: #000088;">$image</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&gt;=</span> HEADER_IMAGE_WIDTH <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
 <span style="color: #666666; font-style: italic;">// We have a new header image!</span>
 <span style="color: #b1b100;">echo</span> get_the_post_thumbnail<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post-thumbnail'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> header_image<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; width=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> HEADER_IMAGE_WIDTH<span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; height=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> HEADER_IMAGE_HEIGHT<span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; alt=&quot;&quot; /&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>The header-img section of the page is defined by this code. It checks if the following are true:<br />
a. the page being displayed is a singular post or a page.<br />
b. the post has a thumbnail<br />
c. the post-thumbnail is of the same size or larger than the defined header image width.</p>
<p>If all of these are true, then the post-thumbnail is set as the header image. Otherwise, the default header image is displayed.</p>
<h2>Step 4. Create the header.css file for styling the Site Name.</h2>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* = Header, Blog Title and Slogan.
 --------------------------------------------------- */</span>
div<span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&#123;</span>
       <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
 <span style="color: #00AA00;">&#125;</span>
 div<span style="color: #cc00cc;">#header-pad</span> <span style="color: #00AA00;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">225px</span><span style="color: #00AA00;">;</span>
      <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">920px</span><span style="color: #00AA00;">;</span>
      <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
 <span style="color: #00AA00;">&#125;</span>
 div<span style="color: #cc00cc;">#header</span> h3 <span style="color: #00AA00;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
 <span style="color: #00AA00;">&#125;</span>
 div<span style="color: #cc00cc;">#header</span> <span style="color: #6666ff;">.box-masthead</span> <span style="color: #00AA00;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
 <span style="color: #00AA00;">&#125;</span>
 div<span style="color: #cc00cc;">#header</span> <span style="color: #6666ff;">.box-masthead</span> <span style="color: #6666ff;">.title</span> <span style="color: #00AA00;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">117px</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
     opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.8</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">920px</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">89</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
 <span style="color: #00AA00;">&#125;</span>
 div<span style="color: #cc00cc;">#header</span> <span style="color: #6666ff;">.box-masthead</span> <span style="color: #6666ff;">.title</span> a <span style="color: #00AA00;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1000px</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">98px</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#4a3f2d</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-1px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">49px</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
 div<span style="color: #cc00cc;">#header</span> <span style="color: #6666ff;">.description</span> <span style="color: #00AA00;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
 <span style="color: #00AA00;">&#125;</span>
 div<span style="color: #cc00cc;">#header</span> <span style="color: #6666ff;">.header-img</span> img <span style="color: #00AA00;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
 <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>The position of the title is absolute and it starts 117px from the top (about half of the header image). The background color is set to white (#fff) and its opacity is 0.8 so that the title will be highlighted but the header image can still be seen. The title (site name) width is set to 920px and overflow is hidden to cater long titles. Here is an example of a header image with the highligted site name.</p>
<div id="attachment_919" class="wp-caption alignleft" style="width: 609px"><a href="http://www.paddsolutions.com/wp-content/uploads/2011/03/wp-classic-header.jpg"><img class="size-full wp-image-919  " src="http://www.paddsolutions.com/wp-content/uploads/2011/03/wp-classic-header.jpg" alt="Sample header" width="599" height="131" /></a><p class="wp-caption-text">Header Image with Highlighted Site Name</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<img src="http://www.paddsolutions.com/?ak_action=api_record_view&id=915&type=feed" alt="" /><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.paddsolutions.com/how-to-add-custom-header-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Theme: Little Secret</title>
		<link>http://www.paddsolutions.com/wordpress-theme-little-secret/</link>
		<comments>http://www.paddsolutions.com/wordpress-theme-little-secret/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 09:25:51 +0000</pubDate>
		<dc:creator>Dulce</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[2 columns]]></category>
		<category><![CDATA[black]]></category>
		<category><![CDATA[fixed width]]></category>
		<category><![CDATA[free wordpress theme]]></category>
		<category><![CDATA[header image]]></category>
		<category><![CDATA[right sidebar]]></category>
		<category><![CDATA[seo friendly]]></category>
		<category><![CDATA[valid css]]></category>
		<category><![CDATA[valid xhtml]]></category>

		<guid isPermaLink="false">http://www.paddsolutions.com/?p=20</guid>
		<description><![CDATA[Little Secret is a clean design, valid xhtml and css WordPress theme with 2 columns sidebar. This SEO friendly theme has valid xhtml and css. It is cross-browser compatible with IE, FF, Opera, Flock and Safari. It is easy to customize and tested with WordPress version 2.5. Download Little Secret Little Secret theme was made [...]
Related posts:<ol>
<li><a href='http://www.paddsolutions.com/wordpress-theme-trendy-cork/' rel='bookmark' title='WordPress Theme: Trendy Cork'>WordPress Theme: Trendy Cork</a></li>
<li><a href='http://www.paddsolutions.com/wordpress-theme-lazy-day/' rel='bookmark' title='WordPress Theme: Lazy Day'>WordPress Theme: Lazy Day</a></li>
<li><a href='http://www.paddsolutions.com/wordpress-theme-freedom-wall/' rel='bookmark' title='WordPress Theme: Freedom Wall'>WordPress Theme: Freedom Wall</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Little Secret is a clean design, valid xhtml and css WordPress theme with 2 columns sidebar. This SEO friendly theme has valid xhtml and css. It is cross-browser compatible with IE, FF, Opera, Flock and Safari. It is easy to customize and tested with WordPress version 2.5.</p>
<p style="text-align: center"><a title="Little Secret" href="http://paddsolutions.com/wpthemes/switch.php?template=littlesecret" target="_blank"><img src="http://www.paddsolutions.com/screenshot/littlesecret/demosmall.png" alt="Little Secret" width="420" height="339" /> </a></p>
<p style="text-align: center"><a title="Download Little Secret" href="http://www.paddsolutions.com/download/littlesecret.zip" target="_blank"><strong>Download Little Secret</strong> </a></p>
<p>Little Secret theme was made possible in collaboration with <a title="Fotobuch" href="http://urltra.de/suche/0/fotobuch/" target="_blank">Fotobuch</a>,  <a title="Fruity Web Directory" href="http://www.fruitydirectory.com/" target="_blank">Fruity Web Directory</a> and <a title="WordPress Themes Gallery" href="http://wpsalon.com/" target="_blank">WordPress Themes Gallery</a>.</p>
<img src="http://www.paddsolutions.com/?ak_action=api_record_view&id=20&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://www.paddsolutions.com/wordpress-theme-trendy-cork/' rel='bookmark' title='WordPress Theme: Trendy Cork'>WordPress Theme: Trendy Cork</a></li>
<li><a href='http://www.paddsolutions.com/wordpress-theme-lazy-day/' rel='bookmark' title='WordPress Theme: Lazy Day'>WordPress Theme: Lazy Day</a></li>
<li><a href='http://www.paddsolutions.com/wordpress-theme-freedom-wall/' rel='bookmark' title='WordPress Theme: Freedom Wall'>WordPress Theme: Freedom Wall</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.paddsolutions.com/wordpress-theme-little-secret/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

