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

  1. seanjacob
    Posted 5 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).


    <?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="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(); ?>
    this is the head

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

  2. seanjacob
    Posted 5 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
    Posted 5 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