editing a wordpress header.php file

Discussion in 'WordPress' started by TCR, Jun 18, 2006.

  1. #1
    I am trying to place an image in the header where there is currently only text. I am not familiar with php. What/where do I insert code to show an image?

    Sorry if that is vauge as hell.
     
    TCR, Jun 18, 2006 IP
  2. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #2
    In Wordpress (assuming version 2 or higher), go to your admin panel | Presentation | Theme Editor.

    You don't need to know PHP. There are PHP statments inserted into the document (identified as something like "<?php wp_title(' '); ?>") but it is HTML. Determine where you want the header image and use HTML to place the image there.
     
    minstrel, Jun 19, 2006 IP
  3. davcheong

    davcheong Well-Known Member

    Messages:
    1,148
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    175
    #3
    Some of the themes for WordPress, it have some easyway to insert it, which is also you can find a header.php under the themes that you use, and normally most of the header image code can be inserted after the
    <body>
    PHP:
    but another case, some doesn't define the images, you might give a try with this code,

    <div align="left" onclick="location.href='http://yourdomain.com/';" style="cursor: pointer;"><img src="http://yourdomain/images/yourimage.jpg"></div>
    PHP:
    With this code, whenever visitor point at your header title or image, it will have a link to your own domain. :)

    Cheers.
     
    davcheong, Jun 19, 2006 IP
  4. TCR

    TCR Peon

    Messages:
    1,164
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for your help, minstral and davcheong. I finally just played with it and dove in.

    I liove wordpress! I wish I had used it for my other website, tho I doubt the themes/templates would be able to accomadte the layout I have with just html =(
     
    TCR, Jun 20, 2006 IP
  5. davcheong

    davcheong Well-Known Member

    Messages:
    1,148
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    175
    #5
    Do stay more in DP, and you can learn about not just Wordpress things, but also others related which will let you learn more and more. You shouldn't be saying "I liove wordpress!", should shout like this too, "I love DP and DP member and lastly also wordpress!!". :) cheers. Feel free to ask here, all DP member will be glad to help.
     
    davcheong, Jun 20, 2006 IP
  6. CuXe

    CuXe Peon

    Messages:
    198
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    CuXe, Jun 21, 2006 IP