WordPress.org

Ready to get started?Download WordPress

Forums

More replacement header questions...... (2 posts)

  1. photojosh
    Member
    Posted 9 years ago #

    So I'm using "Letterhead" as my theme.

    I want to replace the header with a the navigation header that is used in the rest of my site. You can see that header here:

    http://www.evilphotoeye.com/header.html

    ***I know that it is built out of a table and stupid mouse-over code.***

    But the thing is that I'm still learning css, and I can't learn it fast enough to make it do what I want. And I need to get my site back up. I have a wedding announcement that I'm supposed to be making. I plan to redo my website completely with css, but I'm not going to wait until I have learned all I need to know before I put my website up.

    So what I want to do is put that chunk of html in the header. But every time I do ANYTHING to the header.php file, I lose all of the "Letterhead" styling. It ends up looking like this:

    http://www.evilphotoeye.com/blog

    I have tried using <?php include('header.html'); ?> in both the header.php and the index.php files withint the Letterhead theme. Both actions get me to the same place, which looks like what you see above. In fact, anytime I try to remove ANYTHING from the letterhead header.php file [ie, trying to remove the bloginfo('description') from the header] , the whole thing falls apart in regards to the theme. I can add in or remove elements by modifying the style.css file, but anytime I do anything else *POOF*. It gets screwed up.

    Here is the code from the original Letterhead header.php file:

    <!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 bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?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="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>

    <?php wp_head(); ?>
    </head>
    <body>

    <div id="page">

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

  2. photojosh
    Member
    Posted 9 years ago #

    Nevermind, I figured it out.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.