In short
H1, H2 and H3 headings structure the page: once translated, they must keep that role in each language, with the words of the target market. Two sources of omissions coexist: content headings, translated too literally, and headings set by the theme or template (“Description”, “Customer reviews”, “Related posts”), left in the source language. Once this check is done, each language version has a complete hierarchy, entirely in its own language, and table of contents anchors that work.
Why it matters
Headings are what readers skim first to decide whether to stay. Search engines use them too: Google's documentation on title links lists the main visual title and heading elements such as <h1> among the sources it can use for the title link shown in results. A badly translated German H1 can therefore end up on the German results page.
Google determines the language of a page from its visible content and advises against translating only the boilerplate text while leaving the rest in another language. The reverse is also a problem: translated content surrounded by section headings left in French produces a mixed-language page. See avoid mixed-language pages with partial translations (opens in a new tab).
For screen readers, headings act as a table of contents: someone navigating from heading to heading hears “Häufige Fragen” or “Questions fréquentes” depending on whether the translation is complete. Finally, generative engines often extract passages delimited by headings; a clear H2 in the right language helps tie the passage to the right question, although nothing guarantees a citation.
What it improves
- Readability for readers in the target market, who grasp the structure by skimming.
- Relevance Subtopics are expressed in the local vocabulary, which broadens the queries covered.
- Title link in results An accurate H1 reduces the risk of an inconsistent result title.
- Accessibility Heading navigation works in the language of the page.
- Generative engines Better delimited passages. A plausible effect, not measured.
How to check
List the headings of a page in each language:
curl -s https://example.com/de/tees/gruener-tee/ | grep -o -i -E '<h[1-3][^>]*>.*</h[1-3]>' | sed -E 's/<[^>]+>//g'
On a page rendered in JavaScript, use the browser's developer tools console instead:
[...document.querySelectorAll('h1, h2, h3')]
.map((h) => `${h.tagName} ${h.id ? '#' + h.id + ' ' : ''}${h.textContent.trim()}`)
.join('\n');
Compliant result: one H1 in the language of the page, a hierarchy equivalent to that of the source version, and no heading in another language, including in the sidebar, related product blocks and footer.
Across the whole site, a crawl of each language directory with Screaming Frog gives the H1 and H2 tabs. For H3 headings, add a custom extraction (XPath //h3). Paste the results into Google Sheets and spot headings that are identical from one language to another with =IF(B2=D2,"Not translated",""), or headings in another language with =DETECTLANGUAGE(B2). Very short headings (“FAQ”, “Contact”) produce false positives.
Headings set by the theme repeat on every page of the same type: a single omission in the template affects hundreds of URLs. Check at least one page of each template in each language.
How to implement
Before you start
Rules for translating content headings:
- Keep the hierarchy: same number of levels, same logical order. Add or remove a section only if the market requires it, for example a section on shipping specific to one country.
- Use the main keyword of the language in the H1, and the subtopics people actually search for in the H2s. See research keywords by language (opens in a new tab).
- Align the H1 and the title without making them identical: same topic, same keyword, with the title free to add the brand or a selling point. See translate titles and meta descriptions (opens in a new tab).
- Follow the typographic conventions of the language: a capital on each major word in many English headings, capitalized nouns in German, a space before the colon and the question mark in French, but not in English or German.
- Question headings: rephrase them the way a native speaker would ask the question, not as a translation of the French question.
- Leave room: the W3C points out, based on IBM guidelines, that short texts expand proportionally more in translation. A heading that fits on one line in French may take two in German; test templates with the real texts. Avoid
text-transform: uppercaseon long headings, which become harder to read once translated.
Template for reviewing the headings of a page (fictitious example):
| Level | Source heading (fr) | Translated heading (de) | Target keyword (de) | Anchor (de) | Status |
|---|---|---|---|---|---|
| H1 | Thé vert en vrac | Grüner Tee lose | grüner tee lose | — | Reviewed |
| H2 | Comment préparer le thé vert ? | Grünen Tee richtig zubereiten | grünen tee zubereiten | #zubereitung |
Reviewed |
| H3 | Quelle température d'eau ? | Die richtige Wassertemperatur | — | #wassertemperatur |
To review |
Handling heading anchors
Heading identifiers (<h2 id="preparation">) serve the table of contents and deep links. Two options:
- Translate the identifier along with the heading (
#zubereitung): more readable in shared URLs. Update the page's table of contents in the same operation. - Keep a neutral, stable identifier in every language (
#etape-2,#s2): useful if scripts, external links or structured data point to these anchors.
Either way, do not simply copy the French identifier onto the German page, and check that no link in the table of contents points to a missing anchor. See add a table of contents and anchors to long content (opens in a new tab) and add stable anchors (opens in a new tab).
WordPress
Versions WordPress 6.4 to 7.1; WPML 4, Polylang 3 or TranslatePress, and Loco Translate.
- Content headings: they are translated with the rest of the post, in the WPML or TranslatePress editor, or directly in the translation created with Polylang. In the block editor, a heading's anchor is set in the Heading block,
Advancedpanel,HTML anchorfield, for each translation. - Widget titles: with Polylang, in
Languages > Translations; with WPML, inWPML > String Translation. - Theme and plugin headings (“Related products”, “Leave a reply”): they come from the
.poand.molanguage files. WordPress downloads those of themes and plugins published on wordpress.org; for a custom theme or a missing translation, complete the strings with Loco Translate or with WPML's String Translation. - Block themes: headings hard-coded in templates and template parts (header, footer) are translated with the multilingual tool, for example through the template parts section of the WPML Translation Dashboard.
Shopify
Versions Shopify, Translate & Adapt app, November 2026.
Headings entered in product pages, pages and blog posts are translated in Translate & Adapt along with the content. Headings provided by the theme (“You may also like”, “Reviews”) are theme strings: open Translate & Adapt, choose the language, then the section dedicated to the theme and its content, and translate the strings and section headings. Sections added in the theme editor have their own headings, to be translated in the same place.
PrestaShop
Versions PrestaShop 8 and 9.
Content headings (product description, CMS pages) are translated in the multilingual fields of each page. Headings provided by the theme and modules are translated in International > Translations, by choosing theme or module translations, then the language. Find missing strings by keyword with the search engine on that screen.
Magento
Versions Magento Open Source and Adobe Commerce 2.4 (2.4.6 to 2.4.9).
Theme strings are translated in the theme's language file, for example app/design/frontend/Vendor/theme/i18n/de_DE.csv:
"Related Products","Ähnliche Produkte"
"Customer Reviews","Kundenbewertungen"
Deploy, then flush the cache:
bin/magento setup:static-content:deploy de_DE && bin/magento cache:flush
Headings entered in CMS blocks and pages are translated by creating one version per store view.
Drupal
Versions Drupal 10 and 11.
Content headings follow the node translation (Content Translation module). Block and view titles are handled through configuration translation; theme and module strings, through interface translation (Configuration > Regional and language > User interface translation).
Laravel
Versions Laravel 10 to 13.
Do not hard-code any heading in Blade views: go through the language files. Since Laravel 11, a new application no longer has a lang folder: create it with php artisan lang:publish.
// lang/de/product.php
return [
'related' => 'Das könnte Ihnen auch gefallen',
'reviews' => 'Kundenbewertungen',
'reviews_anchor' => 'kundenbewertungen',
];
{{-- resources/views/products/show.blade.php --}}
<h2 id="{{ __('product.reviews_anchor') }}">{{ __('product.reviews') }}</h2>
For content stored in the database, generate anchor identifiers from the translated heading with Str::slug($heading, '-', app()->getLocale()), which applies the language's transliteration rules when they exist.
Next.js
Versions Next.js 15 and 16 (App Router), next-intl 4.
With next-intl, component headings come from the messages of each language:
// app/[locale]/teas/[slug]/page.tsx
import { getTranslations } from 'next-intl/server';
export default async function TeaPage() {
const t = await getTranslations('TeaPage');
return (
<section>
<h2 id={t('reviewsAnchor')}>{t('reviewsHeading')}</h2>
</section>
);
}
For content from a headless CMS, check that each heading field is localized in the CMS and that the query actually requests the page's locale.
Common mistakes
- Forgetting template headings: related products, reviews, sidebar and footer stay in the source language on every page.
- Literal translation of question H2s, which match no real phrasing in the target language.
- H1 identical to the title, copied mechanically, or on the contrary unrelated to it.
- Different structure from one language to another for no reason: skipped levels, H3s turned into H2s during a copy and paste.
- Headings in images or SVG left untranslated. See check text embedded in images (opens in a new tab).
- Anchors copied from the source version, or a table of contents pointing to identifiers that disappeared after translation.
- Templates not tested with long texts: truncated or overflowing headings in German or Finnish.
Frequently asked questions
Should H1 and H2 headings be translated word for word?
No. A translated heading must keep the meaning and function of the source heading, but with the words readers in the market actually use. Use the main keyword of the language in the H1 and the subtopics people actually search for in the H2s, and follow local typographic conventions. Have the headings of strategic pages reviewed by a proficient speaker: that is where a literal translation shows the most.
Should the heading structure be the same in every language?
In principle, yes: same number of levels, same logical order, so that each version covers the same topic in the same way. You can add a section specific to one market, for example shipping or a local regulation, or remove a section that is irrelevant in a given country. Avoid accidental differences, however, such as skipped levels or H3s turned into H2s during a copy and paste.
Should heading anchor identifiers be translated?
Both options are defensible. Translating the identifier along with the heading, for example #zubereitung on the German page, makes shared links more readable. A neutral identifier that is identical in every language is a better fit if scripts or external links depend on it. Either way, update the page's table of contents and check that no internal link points to a missing anchor.
Why do some headings stay in French on a translated page?
They are almost always headings set by the theme, a plugin or a module, such as “Produits associés” or “Avis clients”. They are not part of the page content, so they do not go through the translation editor. They are translated in the theme's language files or in the string translation screen of your multilingual tool, once for all pages that use the same template.
Resources
- Google Search Central: Influencing your title links in search resultsdevelopers.google.com
- Google Search Central: Managing multi-regional and multilingual sitesdevelopers.google.com
- W3C: Text size in translationw3.org
- W3C WAI: Headingsw3.org
- Polylang: Strings translationpolylang.pro
- WPML: Translating menus and template partswpml.org
- Laravel: Localizationlaravel.com
Updated on
Topic checklist (PDF)