wp_head() outputs in body

This is your browser’s attempt to avoid invalid markup. Your echo ' test'; outputs something that does not belong in a head tag, so the browser closes it and opens the body tag. If you look at the actual unprocessed response from the server, it won’t appear this way, but that echo shouldn’t be there regardless, and this issue will disappear when you remove it.

Leave a Comment