WordPress.org

Ready to get started?Download WordPress

Forums

Clickable Header - please look at Header.php for code help (1 post)

  1. 20something
    Member
    Posted 6 years ago #

    Hello, I would like to have a clickable header. I have searched through all of the forums. I see a lot of relevant posts, but none that shows me what I specifically need to add within my header.php file to make this happen. Please look at my code, and let me know what I need to add. Thanks.

    <!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" <?php language_attributes(); ?>>

    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?>
    » <?php
    foreach((get_the_category()) as $cat) {
    echo $cat->cat_name . ' ';
    } ?> <?php } ?>

    <?php wp_title(); ?></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="stylesheet" href="<?php bloginfo('template_url'); ?>/nav.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/print.css" type="text/css" media="print" />

    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/dropdowns.js"></script>

    <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'); ?>" />

    <?php wp_head(); ?>
    </head>
    <body<?php if ( is_home() ) { ?> id="home"<?php } ?>>
    <div id="page" class="clearfloat">

    <div class="clearfloat">
    <div id="branding" class="left">
    <h1>/"><?php bloginfo('name'); ?></h1>
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>

    <div class="right"><?php include (TEMPLATEPATH . '/searchform.php'); ?></div>
    </div>

    <ul id="nav" class="clearfloat">

  2. /" class="on">Home
  3. <?php wp_list_pages('title_li='); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags