Hello,

I have a custom banner header that I would like at the top of my drupal blog. I am using 6.4, please advise. I have looked in the block section but only saw options for the left and right toolbar, none for the top section. Any help would be fantastic.

Thanks.

Comments

Ken Knowles’s picture

Are you using a standard or contributed theme? If so, which one? If not, did you develop the theme yourself?

cayenne’s picture

Generic answer would be to substitute the image you want for the one that is being displayed, in the themes/NAMEOFTHEME/ directory. Give it the same name as the old image.

Only slightly harder is to amend the page.tpl file to seek the image you want.

:)

joelkriner’s picture

I did go into the Themes section and it worked! I just added my jpg into the browse section and it went into the header section. I am still trying to figure out how to center the jpg? I am using Chameleon 6.2.

Thanks again.

cayenne’s picture

Well, at this point, and perhaps I am a hacker, I generally go into the css and define the picture element as one that will center or I go into the page.tpl file and center it. css is better, most folks say.

:)

joelkriner’s picture

OK, like I said-I am a noobie. How do I get into the css?

vm’s picture

you open the style.css file in your theme.

vsr’s picture

Once you find the css that is controling the image, you could try adding this:

margin: 0 auto;

Jeff Burnz’s picture

First, remove the float: left of the header image...

#header img {
  /*float:left; just comment it out */
  padding:0 2em 0.5em 0;
}

and then add

#header {
  text-align:center;
}