How do I make Logo clickable?
-
Look at https://www.rob.dk
I would linke the logo in the top left corner to be clickable (linking to the front page, like the “Rob’s W?bsait” text to the left of it).
Here is the relevant part of my Header:
<div id="header"> <h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1> <div class="description"><?php bloginfo('description'); ?></div> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </div><!-- /header -->
And here is the relevant part of my CSS:
#header { height: 125px; background: url('images/rob_logo.jpg') no-repeat top left; display:block; }
I know part of the problem is, that the IMG is a background image, and I think the solution is SOMETHING like this:
<div id="header"> <h1><a href="<?php echo get_settings('home'); ?>"> [>>>>MY LOGO GRAPHIC HERE - BUT HOW? <<<<] <?php bloginfo('name'); ?></a></h1> <div class="description"><?php bloginfo('description'); ?></div> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </div><!-- /header -->
but whenever I tries something, it messes the page up.
Any help appreciated.
Thanks :o)
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How do I make Logo clickable?’ is closed to new replies.