Monday, 27 May 2013

Why wp_head render results in <body>

I so confused about wp_header render html. I put it in as follow code
<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php
    /*
     * Print the <title> tag based on what is being viewed.
     */
    global $page, $paged;

    wp_title( '|', true, 'right' );

    // Add the blog name.
    bloginfo( 'name' );

    // Add the blog description for the home/front page.
    $site_description = get_bloginfo( 'description', 'display' );
    if ( $site_description && ( is_home() || is_front_page() ) )
        echo " | $site_description";

    ?></title>

<!--style-->
<link rel="stylesheet" href="<?php bloginfo('template_url') ?>/css/normalize.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url') ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_url') ?>/css/slidestyle.css" type="text/css" media="screen" />
<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/img/fav.png" />
<link rel="profile" href=http://gmpg.org/xfn/11 />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />


<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<?php
    wp_head();
?>


</head>
 <body>
 <!--Header-->
  <div id="header">
  <div id="logo" ><img src="<?php bloginfo('template_directory'); ?>/img/logo.png" ></div>
  <div id="header-box">
  <div id="nav-box">
but when I see in html on web browser as follow
View source code here: [link removed, find source code here instead]
Not all page some page no problem such as single.php and some category.php
Check Problem in this website:- Thank you

No comments:

Post a Comment