WordPress.org

Support

Support » How-To and Troubleshooting » Making the header clickable

Making the header clickable

  • Hi All!

    I can’t figure out what I’m not doing right to make the following result in making the header a link for The Round River. Any help would be greatly appreciated!

    Thanks!

    Brian

    <div id="container">
        			    <?php do_action('wp_menubar','BLUECAT'); ?>
    
    	<div id="wrapper">
    		&nbsp; <!--Mozilla hack to show background-->
    		<div id="header">
    
    			<div id="masthead_wrapper">
    				<h1 id="masthead"><a class="standard" href="<?php bloginfo('url'); ?>images/trrbnnrtitle3.jpg"><?php bloginfo('name'); ?></a></h1><h2 id="tagline"><?php bloginfo('description'); ?></h2>
    			</div>
    
    			<div id="headerimg">
    				<?php randomHeader(); ?>
    			</div>
    
                    </div><!--close header id-->
Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    @esmi

    Forum Moderator

    Okay, that isn’t much better, but there is a link there now. How do you make the link = the header image?

    <div id="header">
    			<a href="<?php bloginfo('url'); ?>">
      <img src="images/trrbnnrtitle3.jpg" alt="<?php bloginfo('name'); ?>" />
        </a>
         <h1><a href="<?php bloginfo('url'); ?>">" title="<?php bloginfo('name'); ?>">
             <?php bloginfo('name'); ?></a>
         </h1>
    
    			<div id="masthead_wrapper">
    				<h1 id="masthead"><a class="standard" href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1><h2 id="tagline"><?php bloginfo('description'); ?></h2>
    			</div>
    
    			<div id="headerimg">
    				<?php randomHeader(); ?>
    			</div>
    
                    </div><!--close header id-->

    Okay, now this just looks silly!

    <div id="header">
    
    <a href="<?php bloginfo('url'); ?>">
    
      <img src="<?php bloginfo('template_url'); ?>/images/trrbnnrtitle3.jpg" alt="<?php bloginfo('name'); ?>" /></a>
    
         <h1><a href="<?php bloginfo('url'); ?>">" title="<?php bloginfo('name'); ?>">
             <?php bloginfo('name'); ?></a>
         </h1>

    HEY! I got it!

    It was in the Style.CSS. Just had to mess around with it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Making the header clickable’ is closed to new replies.
Skip to toolbar