WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Everything in head is going in body!!! (3 posts)

  1. seanjacob
    Member
    Posted 3 years ago #

    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.

  2. seanjacob
    Member
    Posted 3 years ago #

    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.

  3. DigitalSquid
    Member
    Posted 3 years ago #

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

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags