Support » Fixing WordPress » Everything in head is going in body!!!

  • Resolved seanjacob

    (@seanjacob)


    I am going crazy, I have spent ages trying to solve this problem I have completely stripped my site. http://www.seanjacob.com

    In the source it looks fine, but in firebug it shows mostly everything that should be in my <head> is in my body which is causing a gap at the top of my page (no it is not css).

    index.php

    <?php get_header(); ?>
    
    this is index
    
    </body>
    </html>

    header.php

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?php wp_title(); ?> <?php bloginfo('name'); ?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
    <?php wp_head(); ?>
    </head>
    <body>
    this is the head

    I also have a style.css which is empty and thats it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think there might be something wrong with <?php get_header(); ?> because when I put everything in the index.php file and have no get_header it works fine.

    DigitalSquid

    (@twelvefootsnowman)

    There’s a dot (ie: ‘.’) on the first line of your source code, before your DOCTYPE deceleration.

    Delete it (the dot, not not doctype!).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Everything in head is going in body!!!’ is closed to new replies.