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

  • Resolved seanjacob


    I am going crazy, I have spent ages trying to solve this problem I have completely stripped my site.

    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).


    <?php get_header(); ?>
    this is index


    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?php wp_title(); ?> <?php bloginfo('name'); ?></title>
    <link rel="profile" href="" />
    <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(); ?>
    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.



    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.