# On the host pages, the head code is loaded in the \<body\>

**URL:** <https://community.hivepress.io/t/on-the-host-pages-the-head-code-is-loaded-in-the-body/6773>\
**Category:** HivePress\
**Created:** [July 27, 2023, 2:04pm UTC](https://community.hivepress.io/t/on-the-host-pages-the-head-code-is-loaded-in-the-body/6773 "2023-07-27T14:04:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewrbowker](https://community.hivepress.io/user_avatar/community.hivepress.io/andrewrbowker/32/4872_2.png) [@andrewrbowker](https://community.hivepress.io/u/andrewrbowker)\
**Post date:** [July 27, 2023, 2:04pm UTC](https://community.hivepress.io/t/on-the-host-pages-the-head-code-is-loaded-in-the-body/6773/1 "2023-07-27T14:04:09Z")

</div>

On the host pages, the head code is loaded in the

This will affect speed, search engines may treat this differently - e.g. the title and canonical is in the rather than the

This will be a theme issue, likely including wp\_head() in the wrong plage

Our SEO person has a screenshot of the code so I can share that. But it doesnt let me upload it here

---

<div class="post-metadata">

**Author:** ![andrewrbowker](https://community.hivepress.io/user_avatar/community.hivepress.io/andrewrbowker/32/4872_2.png) [@andrewrbowker](https://community.hivepress.io/u/andrewrbowker)\
**Post date:** [July 27, 2023, 2:30pm UTC](https://community.hivepress.io/t/on-the-host-pages-the-head-code-is-loaded-in-the-body/6773/2 "2023-07-27T14:30:50Z")

</div>

![WhatsApp Image 2023-07-27 at 14.57.57](https://community.hivepress.io/uploads/default/original/2X/9/9a62447adfc33d24913715a16b1f73218548a343.jpeg)

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [July 28, 2023, 1:40pm UTC](https://community.hivepress.io/t/on-the-host-pages-the-head-code-is-loaded-in-the-body/6773/5 "2023-07-28T13:40:55Z")

</div>

Hi,

It is probable that you have made changes to the header.php file, causing it to appear this way. For example, you may have forgotten to close the head tag or done it the other way around. I recommend that you review this file in more detail.

​I hope this is helpful to you.

---

<div class="post-metadata">

**Author:** ![andrewrbowker](https://community.hivepress.io/user_avatar/community.hivepress.io/andrewrbowker/32/4872_2.png) [@andrewrbowker](https://community.hivepress.io/u/andrewrbowker)\
**Post date:** [July 31, 2023, 12:35pm UTC](https://community.hivepress.io/t/on-the-host-pages-the-head-code-is-loaded-in-the-body/6773/6 "2023-07-31T12:35:04Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [August 30, 2023, 12:35pm UTC](https://community.hivepress.io/t/on-the-host-pages-the-head-code-is-loaded-in-the-body/6773/7 "2023-08-30T12:35:30Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
