Another question on how to add an image in the header..

Discussion in 'Blogging' started by kyoku2, May 26, 2006.

  1. #1
    I have a question on how to add an image(banner image) in my header..

    Here is a code for the templat im using in the header.

    </head>

    <body>

    <div id="wrapper">
    <div id="header">
    <h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1>
    <img src="images/kyokusin.jpg">
    </div>

    <div id="content">


    I tried to add <img src="images/blah.jpg"> above the top <div but this didn;'t work.
     

    Attached Files:

    kyoku2, May 26, 2006 IP
  2. cpucandy

    cpucandy Peon

    Messages:
    489
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Give this a try:

    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/kyokusin.jpg">
     
    cpucandy, May 26, 2006 IP
    kyoku2 likes this.
  3. kyoku2

    kyoku2 Peon

    Messages:
    322
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It really worked thanks.
     
    kyoku2, May 26, 2006 IP
  4. cpucandy

    cpucandy Peon

    Messages:
    489
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Glad to help!

     
    cpucandy, May 26, 2006 IP
  5. kyoku2

    kyoku2 Peon

    Messages:
    322
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    IS there any way that I can put my main title txt hover on top of the banner?

    Like use the image as background? thanks.

    I know a bit of html but the php scripting is not my field..
     
    kyoku2, May 26, 2006 IP
  6. cpucandy

    cpucandy Peon

    Messages:
    489
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Try this:

    body { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kyokusin.jpg"); }
     
    cpucandy, May 26, 2006 IP
  7. kyoku2

    kyoku2 Peon

    Messages:
    322
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hi cpucandy, thank you for your help. I put the code to my header but my blog only displays the "code text" no change.
     
    kyoku2, May 26, 2006 IP
  8. cpucandy

    cpucandy Peon

    Messages:
    489
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Can you post your url so I can take a look at the page.
     
    cpucandy, May 26, 2006 IP
  9. kyoku2

    kyoku2 Peon

    Messages:
    322
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I'm pming you. thanks.
     
    kyoku2, May 26, 2006 IP