Title: Extra code above header?
Last modified: August 18, 2016

---

# Extra code above header?

 *  [tjwalker](https://wordpress.org/support/users/tjwalker/)
 * (@tjwalker)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/extra-code-above-header/)
 * 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](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)

 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/extra-code-above-header/#post-230545)
 * 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](https://wordpress.org/support/users/tjwalker/)
 * (@tjwalker)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/extra-code-above-header/#post-230546)
 * 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
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/extra-code-above-header/#post-230547)
 * _“check with the Default Theme”_
    Wordpress comes with two themes: Default and
   Classic. They should be under the Presentation menu
 *  Thread Starter [tjwalker](https://wordpress.org/support/users/tjwalker/)
 * (@tjwalker)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/extra-code-above-header/#post-230548)
 * 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?
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/extra-code-above-header/#post-230550)
 * Paste your header.php, index.php, and footer.php separately on the following 
   site: [http://pastebin.com](http://pastebin.com) and give us the links.
 *  Thread Starter [tjwalker](https://wordpress.org/support/users/tjwalker/)
 * (@tjwalker)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/extra-code-above-header/#post-230577)
 * header.php: [http://pastebin.com/308366](http://pastebin.com/308366)
 * index.php: [http://pastebin.com/308367](http://pastebin.com/308367)
 * footer.php: [http://pastebin.com/308365](http://pastebin.com/308365)
 * Here they are all in one: [http://pastebin.com/308364](http://pastebin.com/308364)
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/extra-code-above-header/#post-230600)
 * 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?
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/extra-code-above-header/#post-230601)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * Last activity: [20 years, 10 months ago](https://wordpress.org/support/topic/extra-code-above-header/#post-230601)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
