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

Recommended Answers

All 3 Replies

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.

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.