WordPress.org

Ready to get started?Download WordPress

Forums

How To Make The Header A Link (4 posts)

  1. Opticcheese
    Member
    Posted 6 years ago #

    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!

  2. bobjarborfski
    Member
    Posted 6 years ago #

    you have to add the html code for a link in your header.php before you can start styling it.

  3. Opticcheese
    Member
    Posted 6 years ago #

    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">
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head profile="http://gmpg.org/xfn/11">
    <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-->

  4. moshu
    Member
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic