How to use header image as link (2 posts)

  1. spencergaum
    Posted 9 years ago #


    I'm new at this. I registered a site with netfirms at http://www.spencergaum.com

    I have just started setting up this site, and I was wondering how to use the picture at the top as a link rather than the text in red.

    Would this be somewhere in the stylesheet? I'm pretty sure that "h1" is the red text and that "#masthead" is the image. But I don't know what to do with these.

    Any help is much appreciated!

  2. MeredithSilverman
    Posted 8 years ago #

    I had the same problem. There's not an easy way to make an image link in CSS. So I defined my header image in header.php instead. The code in header.php looks like this:

    <div id="banner">
      <a href="<?php echo get_settings('home'); ?>/"><img src="http://www.sample.com/images/banner.gif" /></a>

Topic Closed

This topic has been closed to new replies.

About this Topic