• Hey I just started my blog celebrityodor.com and was wondering how I could make the header a link that goes to the homepage. My header stylesheet looks like this:

    #header {
    width: 905px;
    height: 234px;
    background: #000000 url(images/header.jpg) top center no-repeat;
    padding: 0px;
    margin: 0px;
    text-align: left;
    }
    #header h2 {
    color: #ffffff;
    font-size: 30px;
    font-family: Georgia, Times New Roman, Sans-Serif;
    font-weight: bold;
    margin: 0px;
    text-indent: 30px;
    padding: 25px 0px 5px 0px;
    }

    #header h2 a {
    color: #ffffff;
    text-decoration: none;
    }

    #header h2 a:hover {
    color: #006699;
    text-decoration: none;
    }

    #header h3 {
    color: #ffffff;
    font-size: 13px;
    font-family: Georgia, Times New Roman, Sans-Serif;
    text-indent: 35px;
    margin: 0px;
    padding: 0px;
    }

    Thanks in advance for the help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • you have to add the html code for a link in your header.php before you can start styling it.

    Thread Starter opticcheese

    (@opticcheese)

    Im not sure how to code it, here is my header.php:

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml”&gt;

    <head profile=”http://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />

    <title><?php wp_title(”); ?><?php if(wp_title(”, false)) { echo ‘ |’; } ?> <?php bloginfo(‘name’); ?></title>

    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
    <link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <!–we need this for plugins–>
    <?php wp_head(); ?>

    </head>
    <body>

    <div id=”container”>
    <div id=”header”>

    </div>

    <!–header.php end–>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How To Make The Header A Link’ is closed to new replies.