I've been trying to fix the issue where wp_head loads in the body tag in wordpress, and I've discovered that when I look at the page source, an extra HTML block appears before the code from my header.php file.
Here's what I've tried:
- Setting wp_debug to true
- ensuring that charset is UTF-8
- removing all text before the beginning of !DOCTYPE
- check for missing closing tags
You can see that my code is being rendered correctly.. but why am I getting a HTML block at the start of the document?? Any help would be amazing. Thanks so much
wp_head()
call to before closing<head>
tag. – Abhik Jan 7 '18 at 9:14<title>Document</title>
as text among the files. You'll probably find where it's being added. – Jack Johansson♦ Jan 7 '18 at 10:26