The hreflang attribute should be implemented in the <head>, not outside of it.
If your hreflang tag isn’t where it should be, you can delete it and re-add it appropriately.
If the hreflang resides outside the <head>, it may not be crawled by search engines. This means that the attribute may not be serving the purpose you think it is.
The solution here is to ensure that hreflang attributes reside in the <head> tag on the page.
You’ll need to delete the current hreflang and add it again in the correct location.
To do this, you’ll need certain access permissions to your site’s code. If you don’t have those permissions, you may need to ask the engineering team to add the code to your website.
Luckily, you can also use an SEO execution platform to implement the change on your own — all within a matter of minutes. Here’s how.
Updating a page in which the Hreflang resides outside the <head> can be completed in two steps.
The first step of the process is to delete the current hreflang tag(s) that exist outside the <head>. You can do that using ClarityAutomate.
That’s it! Push those changes live and the hreflang will be gone.
Now that the original hreflang has been deleted, you can add it back in the correct location.
All that’s left to do is to push your changes live. ClarityAutomate lets you go through this entire process in a matter of minutes, so you can scale this process across your entire site.