• Hey all,
    I’m new here. And to wordpress. But I LOVE IT. LOVE IT. Serious props to everyone who has contributed.

    I’ve been working on a site
    http://www.cbcjunkie.org/main
    But have now run into a problem I can’t fugure out.

    First, I was having trouble getting a title to show up (the one Firefox displays on its top bar). So I checked ‘view > page source’ and it looks like wordpress is producing extra code above the header.php.

    I’ve been messing with the “basic” wordpress template something fierce but I’m sure I can’t tell where the code is coming from (not in header.php or index.php). Any thoughts?

    I’m running the most current version of WP.

Viewing 8 replies - 1 through 8 (of 8 total)
  • It seems that you did the template files wrongly as I can see two “head” sections. Cross check with the Default Theme as to what goes to “header.php”, to “index.php” and to “footer.php.”

    Thread Starter tjwalker

    (@tjwalker)

    thanks alphaoide. Ya I saw the two “head” sections and I don’t know where the 1st one is comming from.

    It’s not in the header.php or the index.php. And I’m not actually using the footer. It just seems crazy: could you clarify what you mean by “check with the Default Theme”? thx

    “check with the Default Theme”
    Wordpress comes with two themes: Default and Classic. They should be under the Presentation menu

    Thread Starter tjwalker

    (@tjwalker)

    I just tried copying the Default Theme’s header.php file into my header.php (minus the css). It still produces the extra “head” code when I “view source” on my hompage.

    Any other ideas where it might be coming from?

    Paste your header.php, index.php, and footer.php separately on the following site: http://pastebin.com and give us the links.

    Thread Starter tjwalker

    (@tjwalker)

    When viewing the source it’s not only a head section, it’s an entire (empty) html file:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    </head>
    <body>
    </body>
    </html>

    Is it something related to your host? Or do you have something else in your theme folder than the necessary template files?

    In both header.php and index.php, you have <body>. You need only one of them, preferably in header.php.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Extra code above header?’ is closed to new replies.