0

I have some problem with my HTML code but I cannot figure out why, hope you guys can help me.

My website here http://caycanh.url.ph/ although displayed fine, I saw some problem when I use Firebug to detect the code. This is how it displayed in Firebug dock:

<html lang="en-US">
<head> </head>  ******THIS IS WHERE THE STRANGE THING HAPPEN*******
<body>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title>Cây cảnh</title>
    <meta content="Purple Tree Farm, Tennessee, farmers market, Murfreesboro, Franklin, Shelbyville, seasonal plants, Bedford County, hanging baskets, potted herbs, vegetable slips, greenhouses" name="keywords">
    <meta content="Loca....
    ....

</body>

Strange thing is the meta, title, link, script tags stay in body instead of head tag.
I could not fine any problem with the code generated by Wordpress when I use View page source function (Firefox) to observe the codes.

Please help me find out why those tags does not stay in head as normal

You can see my code index.php, footer.php, header.php to see how I linked all of them with this link: http://www.mediafire.com/download/akq847eojdl2fi6/index.zip

Thanks all of you for your help

3
Contributors
3
Replies
25
Views
3 Years
Discussion Span
Last Post by Tu Dinh
1

I had this problem once after I had copied and pasted the header with the doctype from another page. It was picking up something weird that I couldn't see in the editor that somehow got copied over.

Go into your header.php and manually remove <!DOCTYPE html> and then retype it again.

1

You had two calls to <?php get_header(); ?> once in Index.PHP and again in Header.PHP which may have been the cause. Here are your files. I removed the js from the header and placed in footer to speed up page loading. If it doesn't fix your issue let me know and I will see what I can do.

http://codepad.org/54xoJN9r

Edited by jparkton: Tired, forgot to link :P

0

Hi @pixelsoul and @jparkton, I try both of your ways and removing <?php get_header(); ?> in Header.PHP did work, somehow I did not see the code there.

Thank all of you for your help :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.