top of page
  • Writer's pictureBrent Payne

Canonical outside of head

This indicates that the URL in question includes a canonical element within the HTML body instead of within the <head> section.

Why is this important?

When a canonical is placed outside of the <head> section, search engines will disregard it, rendering the intended effect of the rel=canonical attribute ineffective.

What does the Optimization check?

This Optimization will be activated for any internal URL featuring a canonical element located outside the <head> segment of the HTML code.

Examples that trigger this Optimization:

Take for instance the URL:

The Optimization would be triggered if a page at this URL included a canonical link outside the <head>, such as:

<!doctype html><html lang="en">  <head>    <title>example</title>    ...  </head>  <body>    ...    <link rel="canonical" href="" />    ...  </body></html>

The Optimization might also be triggered if there are invalid HTML elements disrupting the <head>, leading to an early start of the <body> and thus misplacement of the canonical tag.

How do you resolve this issue?

Given that this Optimization is labeled 'Critical', it signifies a major error that could severely affect organic search traffic. Resolution of Critical issues should be a top priority.

Often, the cause is a <head> section that has been corrupted. If Googlebot processes the HTML and moves the canonical tag to the body, investigate if any of these Optimizations are also triggered:

If addressing these issues doesn't fix the canonical problem, further investigation will be needed. It may suggest a configuration problem with the specific URL, possibly due to a template or plugin error. The canonical tag would then need to be repositioned within the <head>, which might require the help of a developer.

0 views0 comments

Recent Posts

See All

CSS file size too large discovered in SEO audit

In our SEO audits at Loud Interactive, we often come across a common yet significant issue that can heavily impact your website's loading speed and overall performance: CSS file size too large. Let's

CSS file size too large discovered in SEO audit

When conducting an SEO audit on your site, one issue that might come up is that your CSS file size is too large. But why does this matter, and what can you do about it? Let's dive in. What's the Issue

H1 tag missing or empty" Discovered in an SEO Audit

At Loud Interactive, we've encountered a common issue during our SEO audits that can significantly impact a website's performance on search engines: the "H1 tag missing or empty" warning. This problem

bottom of page