Fix guides · SEO
How to fix “Document doesn't have a <title> element”
The page title is the first thing screen readers announce and the headline of your search result. How to set it on Shopify, WordPress, Webflow, Wix, Squarespace and Next.js.
- Time to fix
- 5–15 minutes
- Skill needed
- No code
- Who notices
- Search visitors, screen reader users, and anyone with many tabs open
Why it matters
The <title> is shown in browser tabs, bookmarks and as the clickable headline in search results. Screen readers read it first when a page opens.
A missing or empty title leaves search engines to guess, and leaves visitors with tabs that all say the same thing.
“While 97% of mobile websites include a document title, only 69% have titles that are more than four words long.”
Before you start
- Write a unique title for each page: what's on it first, then your brand. For example: "Linen shirts for men | Northwind".
- Keep it short enough to read at a glance; search results cut long titles off.
Fix it on your platform
Shopify
- Home page: go to Online Store → Preferences and fill in the home page title. Products, collections, pages and blog posts: in their Search engine listing section, click Edit website SEO and fill in the page title.
- Themes output it with the page_title object; if the <title> tag itself is missing, add it to layout/theme.liquid as below.
<title>
{{ page_title -}}
{%- unless page_title contains shop.name %} – {{ shop.name }}{% endunless -%}
</title>WordPress
- WordPress builds titles from the post or page title and the site title (Settings → General). An SEO plugin lets you set a custom title per page.
- If no <title> appears at all, your theme doesn't declare title-tag support; ask the theme developer or switch themes.
Webflow
- Open the Pages panel → Page settings → SEO settings and fill in the Title tag for each page. For CMS pages, set it on the Collection template, using fields from the item.
Wix
- Click Pages & Menu, then the More Actions icon next to the page → SEO basics, and set the title tag. The Accessibility Wizard also checks page titles.
Squarespace
- Open the page's settings, go to the SEO tab and fill in the SEO title. If a page has no SEO title, Squarespace uses the page title.
Next.js
- Export metadata (or generateMetadata) with a title from every page, and use a title template in the root layout for your brand name.
export const metadata: Metadata = {
title: { default: "Northwind", template: "%s | Northwind" },
};Any other site
- Add one <title> inside the <head> of every page.
<head>
<title>Linen shirts for men | Northwind</title>
</head>Check that it's fixed
- Hover over the browser tab: it should show the new title.
- Re-run your StudioLNC audit: the issue should be gone.
Find every issue like this on your site
Free audit of performance, accessibility, SEO and security, with fixes for your platform.