WordPress.org

Ready to get started?Download WordPress

Forums

Making the header clickable (5 posts)

  1. JP Savage
    Member
    Posted 4 years ago #

    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-->
  2. esmi
    Forum Moderator
    Posted 4 years ago #

  3. JP Savage
    Member
    Posted 4 years ago #

    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-->
  4. JP Savage
    Member
    Posted 4 years ago #

    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>
  5. JP Savage
    Member
    Posted 4 years ago #

    HEY! I got it!

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

Topic Closed

This topic has been closed to new replies.

About this Topic