Wordpress Coding Help Needed for Hyperlink

Discussion in 'PHP' started by NRLMedia, Jun 20, 2006.

  1. #1
    I am currently working with the default wordpress theme and trying to figure out how to hyperlink the header image so I can use my own customized version of the header image (without the blog name text).

    The header image is kubrickheader.jpg. (In the default wordpress theme)

    Does anyone know how to do this and if so, what do I need to change/add?

    Could you provide the code?

    Thanks in advance!
     
    NRLMedia, Jun 20, 2006 IP
  2. Bob_

    Bob_ Peon

    Messages:
    31
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Open wordpressdir/wp-content/themes/default/header.php and search for
    <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>
    Code (markup):
    The title is the link inside the h1 tags. Change this part of the above
    		<h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    Code (markup):
    to
    		<a href="<?php echo get_settings('home'); ?>/"><img src="your image path"></a>
    Code (markup):
    and if you don't want the description then remove this line completely
    		<div class="description"><?php bloginfo('description'); ?></div>
    Code (markup):
     
    Bob_, Jun 22, 2006 IP
    NRLMedia likes this.
  3. NRLMedia

    NRLMedia Peon

    Messages:
    2,462
    Likes Received:
    215
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I really appreciate it!
     
    NRLMedia, Jun 22, 2006 IP