need help in editing wordpress template header

Discussion in 'WordPress' started by Buhawi, Aug 22, 2008.

  1. #1
    Hi!

    I am working on my very first blog. I have chosen a free Wordpress template to use for it.

    However, I want to put an image in its header where there is currently nothing except the blog title.

    How can I do this? Please consider that fact that I have never done this before and I have very little knowledge about html.

    Hope to get some help on this. Thanks! :)
     
    Buhawi, Aug 22, 2008 IP
  2. jack_ss

    jack_ss Guest

    Messages:
    94
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Log in to WP admin, click "Presentation", click "Theme Editor", click on "header.php" or "Header" (depending on the Theme) so it's in your editing window then replace <?php bloginfo('name'); ?> with <img src="/path_to_your/image.jpg" alt="<?php bloginfo('name'); ?>">, save out and you're done.
     
    jack_ss, Aug 22, 2008 IP
  3. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Another way is to add a background image to the header section in the stylesheet. This is from the default Kubrick theme (stylesheet.css):

    #header {
    background: #73a0c5 url('images/kubrickheader.jpg') no-repeat bottom center;
    }


    Can you give a link to your blog or the template?
     
    Cash Nebula, Aug 24, 2008 IP
  4. jack_ss

    jack_ss Guest

    Messages:
    94
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    @Cash I thought about the CSS solution for a second, but thought perhaps not all themes would support it.
     
    jack_ss, Aug 24, 2008 IP
  5. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks, I should have mentioned that it needs <div id="header"> in header.php for it to work. It pretty standard but are a few who don't use it, or name it differently.

    Try Jack's method, Buhawi. It has a better chance of working.
     
    Cash Nebula, Aug 24, 2008 IP
  6. Buhawi

    Buhawi Well-Known Member

    Messages:
    696
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #6
    Thanks a lot, guys, for all your inputs! I appreciate it very much. :)
     
    Buhawi, Aug 27, 2008 IP