Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
|
Nothing in that code is specifically mentioning an image. It looks like WordPress to me. The code for your logo is probably in your theme's header.php file. The default theme for WP has this in the header.php file:
Code:
<div id="headerimg">
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<div class="description"><?php bloginfo('description'); ?></div>
</div>
That already has a link around the logo so if your theme doesn't have the link you can follow the code above to add the link.
The basic idea is any image coded into the html just needs a link around it.
<a href="someURL"><img src="pathToYourImage" /></a>
For the background link you have to get a little creative since you can't add the link directly to the image. How you do that depends on the layout of your page. If your image is set as the background of a div you could do something like:
<a href="someURL"><div id="logo-bkgd-image"></div></a>
You'd be wrapping the link around the div that contains the background image. If the image is the background for a different kind of html element you'd wrap the link around that element.
|