Help with Wordpress header image?

Discussion in 'PHP' started by indyonline, Jul 5, 2009.

  1. #1
    I'm trying to change my header image, I have changed the header background in the CSS file but I want to change the title and description and put in my own image logo.
    What would I have to change in this code to use an image instead?

    Any help would be appreciated.
    Thanks in advance.
    <div id="header">
    		<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    		<h2><?php bloginfo('description'); ?></h2>
    		<div id="searchdiv"><br /><?php include('adsense.php'); ?>
    		</div>
    </div>
    Code (markup):

     
    indyonline, Jul 5, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    Well in the css file find header and change the image


    If you remove then the title and stuff will be removed and u can show the image fully

    <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    		<h2><?php bloginfo('description'); ?></h2>
    
    Code (markup):
     
    Bohra, Jul 6, 2009 IP
  3. indyonline

    indyonline Prominent Member

    Messages:
    4,626
    Likes Received:
    248
    Best Answers:
    2
    Trophy Points:
    335
    #3
    Thats the background image. I want to replace the title text with a logo. when I add it it just shows the alternate text and it is a link the image is just not showing.
     
    indyonline, Jul 6, 2009 IP
  4. webdesigners

    webdesigners Banned

    Messages:
    534
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #4
    add this if you are using img for your logo:- <a href="<?php echo get_option('home'); ?>/"><img src="http://imagesource.jpg"></a>
     
    webdesigners, Jul 6, 2009 IP
    indyonline likes this.
  5. indyonline

    indyonline Prominent Member

    Messages:
    4,626
    Likes Received:
    248
    Best Answers:
    2
    Trophy Points:
    335
    #5
    Thanks, that did it. I tried that before but I need to add template path

    thanks guys!
     
    indyonline, Jul 6, 2009 IP