How do I make the Deafult Header in Wordpress Hyperlinked?

Discussion in 'PHP' started by aconic, Feb 23, 2007.

  1. #1
    A little bit of help here would be appreciated for those who are familiar with the Default Theme of Wordpress.

    I would like to upload my own header image and get that hyperlinked without the Blog Info and Description Text.

    Any help would be appreciated.

    Thanks.
     
    aconic, Feb 23, 2007 IP
  2. SilkySmooth

    SilkySmooth Well-Known Member

    Messages:
    1,583
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    180
    #2
    Hi,

    Just open up the header.php file in the content->themes->default directory and edit the following code:

    
    <div id="header">
    	<div id="headerimg">
    		<h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    		<div class="description"><?php bloginfo('description'); ?></div>
    	</div>
    </div>
    <hr />
    
    Code (markup):
    Replace it with the image and remove the parts you don't want to display.

    HTH
     
    SilkySmooth, Feb 23, 2007 IP
  3. aconic

    aconic Guest

    Messages:
    35
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Could you post the exact code I would need to replace it with if I wanted to:
    • Delete the Blog Title and Description
    • Keep the KubrickHeader.jpg and HyperLink that.
    I would appreciate it as I am clueless at the moment. :)
     
    aconic, Feb 23, 2007 IP
  4. SilkySmooth

    SilkySmooth Well-Known Member

    Messages:
    1,583
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    180
    #4
    Ok, I cannot test this as all of my blogs are using custom themes, but give this a test and let me know if it works:

    
    <div id="header">
    	<a href="http://www.test.com/"><div id="headerimg"></div></a>
    </div>
    <hr />
    
    Code (markup):
     
    SilkySmooth, Feb 23, 2007 IP
  5. aconic

    aconic Guest

    Messages:
    35
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That didn't hyperlink the header.
     
    aconic, Feb 23, 2007 IP
  6. SilkySmooth

    SilkySmooth Well-Known Member

    Messages:
    1,583
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    180
    #6
    Ok, well the only other thing I can suggest is to switch out the:

    
    <div id="headerimg"></div>
    
    Code (markup):
    And replace it with an image:

    
    <img src="path/to/new/header.gif" />
    
    Code (markup):
     
    SilkySmooth, Feb 23, 2007 IP