Hey I have a blog at www.thenewwebmaster.com - if you visit it that you can see the main logo at the top isn't linked to the homepage. How can I make it go to the homepage? It could be a normal HTML link but it can't because the image is CSS. The logo is just: <div id="header"> <div id="header-right"> <?php include 'adsense/468x60.php';?> </div> <div style="clear: both;"></div> </div> HTML: So, as you can see it has no link in it. The CSS code for the header is this: #header { width: 950px; margin-left: auto; margin-right: auto; height: 172px; background-image: url(images/logo.jpg); background-position: top left; background-repeat: no-repeat; } HTML: As you can see, it has the logo as a background image. My question is how can I make it link to the homepage so when I click it, it goes to the homepage. Calum
In any wordpress blog the logo is by default linked to the index.php, although we can change it from the settings option, you can check there if you find anything helpful. Best Regards
Try something like this: <div id="header" onclick="location.href='<?php echo get_settings('home'); ?>';" style="cursor: pointer;"> <div id="header-right"><?php include 'adsense/468x60.php';?></div> <div style="clear: both;"></div> </div> Code (markup):