How to Put a Banner in the Headway Theme Header

RSantiago from the forums wanted to know how to put a banner in the headway theme header, so I thought I’d make a quick tutorial. Here’s how to put a banner in the headway theme header.

How to Add a Banner to the Headway Header

To add a banner to the header, just add the following code to the before header link easy hook.


<div id="banner">

<a href="http://www.website.com"><img src="your-path-to-image" alt="alt-text" /></a>
</div>

Of course, you’ll want to change that code to the appropriate URLs.

The CSS Code

Now you just need to add the following code to the bottom of your custom.css file:


body.custom div#banner {float: right; display: inline; margin-top: 1%; margin-right: 1%;}
body.custom div#top {clear: none; float: left; display: inline;}

This makes the logo/site name area stay to the left and moves the banner in a nicer position. You can adjust the percentages to move the banner around.

Any Questions?

Have you added your banner yet? Do you have any questions for this tutorial? Share your thoughts and opinions below!

Get a video of this tutorial when you join the premium section! One-time-fee for access to all of our premium resources.

You just finished reading How to Put a Banner in the Headway Theme Header. Consider leaving a comment. Is the content out of date?
Let us know so we can update it.

http://headwayhub.com/2010/06/20/how-put-banner-headway-theme-header/

Hey You! What's Powering Your Website?

No Need For WordPress Developers! Drag & Drop With Headway

Headway is a feature-rich, flexible and user-friendly WordPress theme which nearly eliminates the need for coding, and empowers average WordPress users to create unique, great looking WordPress sites.

Learn More About Headway Themes

Post comment as twitter logo facebook logo
Sort: Newest | Oldest

Thanks Cory. See you over there.

In my custom folder there is no image folder. Should I create one? I am impressed with your dedication to your blog, You answered that in record time.

I created that folder and then uploaded the jpg there. The added the css code and now the site is even wonkier.

*sigh*

If you hop into the official support forums it'll be way easier to get help with setting up what you're trying to do. I actually moderate those so you'll still receive my help in addition to alternate suggestions.

Thanks Cory. I will give that a try. I appreciate your help very much.
What would you recommend for a good resource for css (ebook, etc)?

I am not seeing a custom/images folder per se. Where would it be in the template folder?

http://www.w3schools.com

It's in wp-content/themes/headway-xxx/custom/images

Can you look at my site? I have tried several css variations and I can;t get the header image to float to the left while leaving the margins of the body container to stay as is. I want a full banner image across the top (centered).

www.vibenhance.com

What you're trying to do will require a CSS background image. This tutorial is more for an ad banner not a header image.

Basically, take the background of your header image, and upload it to your custom/images folder. Then use this code at the bottom of your custom.css file:

body.custom div#header-container {background: url(custom/images/header.jpg);}

Then upload the part with your logo and site text as a normal header image in the visual editor. Make sure it's not too large. It will center itself.

Hey Corey, I did this on my site http://micah.illmakeit.com/. But as you can see it isn't aligned. I'm wanting the matchbook rss button to be level with the header image. Do I have to make my header smaller, or is there a way to make it float on top of it to the right?

sorry. i figured it out by making the header smaller. I'd still like to know if it's possible to make it float on top of a larger header though. thanks a bunch!

You can probably use a negative CSS margin for that. http://www.w3schools.org. Check out the CSS margin property.

Hi Corey,

I did exactly what you said, but for some reason the banner just does not move to the right!

It is directly above the header image.

Any ideas why?!

Corey, I just realise that the custom.css code was within the comments (i.e. /* */) lol!

Thanks again!

Glad you figured it out. =)

Thank you Corey. You are totally awesome for putting this tutorial on your blog :)

Cheers!