Title: Need a custom header
Last modified: August 19, 2016

---

# Need a custom header

 *  Resolved [matthewharmon102](https://wordpress.org/support/users/matthewharmon102/)
 * (@matthewharmon102)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-a-custom-header/)
 * i have a png image that i want to use as a header to go just above the top menu
   bar. how would i go about addit this? the header image is the same dimensions
   as the wordpress header file

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-a-custom-header/#post-1779580)
 * that depends on the theme that you are using.
 * most likely, you need to edit header.php of your theme.
 * a link to your site might be helpful.
 *  Thread Starter [matthewharmon102](https://wordpress.org/support/users/matthewharmon102/)
 * (@matthewharmon102)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-a-custom-header/#post-1779584)
 * im using the threattocreativity theme by max is now. do you have an example of
   the code i would need to use?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-a-custom-header/#post-1779594)
 * in header.php – between the lines
    `<body>` and `<div id="header_nav">` you could
   add the image html code; for instance:
 *     ```
       <img src="http://www.yoursite.com/fullpathto/image.png" class="top-header-img" alt="" width="930" height="200" />
       ```
   
 * (change the number values to reflect the size of your image, and enter the absolute
   url to the image)
 * so the whole area should look like:
 *     ```
       <body>
       <img src="http://www.yoursite.com/fullpathto/image.png" class="top-header-img" alt="" width="930" height="200" />
   
       		<div id="header_nav">
       ```
   
 * then add a new style to style.css of the theme; for instance:
 *     ```
       .top-header-img {
       	width: 930px;
       	height: 200px;
       	margin: 0 auto;
       	 }
       ```
   
 * (number values as above)
 *  Thread Starter [matthewharmon102](https://wordpress.org/support/users/matthewharmon102/)
 * (@matthewharmon102)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-a-custom-header/#post-1779613)
 * thanks thats exactly what i was looking for! just need to edit the image so it
   fits the screen correctly. is there a way of aligning the image? i would like
   it to be in the centre if possible
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-a-custom-header/#post-1779640)
 * if you use the mehtod suggested, this: `margin: 0 auto;` should take care of 
   the centering.
 *  Thread Starter [matthewharmon102](https://wordpress.org/support/users/matthewharmon102/)
 * (@matthewharmon102)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-a-custom-header/#post-1779911)
 * i think the centering issue is due to my browser. im running the IE9 beta, which
   doesnt seem to align the site, but if i run it in compatability mode, the header
   lines up (but the menus do not).
 *  [jtso23](https://wordpress.org/support/users/jtso23/)
 * (@jtso23)
 * [15 years ago](https://wordpress.org/support/topic/need-a-custom-header/#post-1779955)
 * Hey did you ever figure out the centering issue? I’m having the same exact problem
   and can’t get the header to stay put when resizing the window.
 *  [jtso23](https://wordpress.org/support/users/jtso23/)
 * (@jtso23)
 * [15 years ago](https://wordpress.org/support/topic/need-a-custom-header/#post-1779956)
 * got it.
 * in my css I added the following in bold:
 * }
 * .top-header-img {
    width: 930px; height: 200px; **margin:0 10px; float:right;}
 *  [usedcarsincolorado](https://wordpress.org/support/users/usedcarsincolorado/)
 * (@usedcarsincolorado)
 * [15 years ago](https://wordpress.org/support/topic/need-a-custom-header/#post-1779957)
 * Im glad I stumbled on this forum. I had a problem with modifying my template 
   that is in wordpress but this site helped me figure it out. My site was a wordpress
   site but because I had this issue with the template I changed it to a regular
   website but I think I will be going back.
 * [used cars in colorado](http://www.used-carsincolorado.com)

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Need a custom header’ is closed to new replies.

## Tags

 * [add](https://wordpress.org/support/topic-tag/add/)
 * [header](https://wordpress.org/support/topic-tag/header/)

 * 9 replies
 * 4 participants
 * Last reply from: [usedcarsincolorado](https://wordpress.org/support/users/usedcarsincolorado/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/need-a-custom-header/#post-1779957)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
