I said before that I don’t like to mess with header images for WordPress Themes that does not comes with any header images. Themes like this one that I am using does not have provisions for header images and when you are not good in CSS codes like me, trying to insert a header image into a theme like this can be very frustrating.

Blue Workhorse asked me if it is possible to insert a header image for themes that does not comes with one. Of course you can but most of the time it will not look right because the theme designer has not included any division codes for that purpose. I checked out Blue Workhorse and he is using the StudioPress Theme. I happen to have a copy of that theme in my xammp so I gave it a shot.

Taking that theme as an example, if you want to insert a header image, first make your image to the right width. In this case the width of the theme’s body is 950 px so I made an image for that same width with a height of 100 px. Then upload the image using your FTP client to your Theme’s image folder. Remember the title of that image. In my case, I titled the image “header.jpg”

Open the theme’s stylesheet and scroll down until you see this code.

#header {
margin: 0;
padding: 0 0 0 0;
}

Immediately before the “margin: 0;” insert the extra codes like below. (the ones in bold)

#header {
background: url(images/header.jpg);
width:950px;
height: 100px;

margin: 0;
padding: 0 0 0 0;
}

You must specify the width or else the image will not show. You can play with the height though. So if you want a bigger image, increase the height. Say if your image has a height of 200 px, change the codes here accordingly. The width has to be the same as your theme’s body width. The screenshot below shows the image I have uploaded.

sample.jpg

Now comes the frustrating part. I cannot find a way to make the image go below the blue color column on the top where the search box is located. I tried to adjust the padding values but to no avail. I am sure there is some way to do it, but I really do not know, so I am sorry. In the end, I did a workaround by adding a blue column exactly the same size as the one in the theme so when the image loads it blends in perfectly with the original and no one will notice anything different.

That done, I am sure you will also want to hide the theme’s title. That is the easy part. Scroll down until you see this code below and ad in “display: none” (bolded)

#underheader h1.sitename {
display:none;
padding: 0 0 0 0;
position: relative;
font-size: 23pt;
width: 600px;
}
If you want to hide the site description, do the same thing for these codes.

#underheader h2.sitedesc {
display: none;
padding: 0 0 0 0;
position: relative;
font-size: 12pt;
color: #4C82A6;
}

Detailed information about WordPress Themes Header Image can be found at the WordPress codex.

Related

Simple Modifications For Your WordPress Theme
Inserting and Aligning Images In Your Wordpress Blog
Making A Header Image For The StudioPress Theme
Things That You Should Learn in Blogging
A Dateless WordPress Theme For Niche Blogging
How to make a 125px x125px Image Link For Your Blog
Removing Image Border In The K9 WordPress Theme
Aligning Images With Your Stylesheet.