TranslateAll
TranslateAll blog

How to Check Hreflang in WordPress

Check hreflang in WordPress with TranslateAll’s live German and Dutch examples. Verify return links, canonicals and the x-default fallback.

Two violet website panels connected by reciprocal light paths

Open two language versions of the same page. In the HTML head of each version, find the hreflang links. Both pages should list themselves and link to one another with full URLs. Then check the canonical of each page separately. For genuinely translated pages, it usually points to the current language URL.

1. Open the German and Dutch examples

The TranslateAll guide has a German version under /de/ and a Dutch version for the Netherlands under /nl-nl/. Both cover the same topic. Open them in separate tabs and check that the main content is in the expected language.

Screenshot of the German TranslateAll guide under /de/
German example. The live page is in German, and its hreflang code is de-DE.

Open the German example

Screenshot of the Dutch TranslateAll guide under /nl-nl/
Dutch example. The live page is in Dutch, and its hreflang code is nl-NL.

Open the Dutch example

2. Read the HTML head in both browser tabs

In Chrome, open the page source with Ctrl+U on Windows or Command+Option+U on Mac. Search for hreflang and canonical. Here are the relevant lines from the two live pages, reformatted for readability. The site publishes other language references too.

Canonical on the German page

<link rel="canonical"
      href="https://www.gettranslateall.com/de/make-wordpress-multilingual/">

Canonical on the Dutch page

<link rel="canonical"
      href="https://www.gettranslateall.com/nl-nl/make-wordpress-multilingual/">

These alternate links appear on both pages

<link rel="alternate" hreflang="de-DE"
      href="https://www.gettranslateall.com/de/make-wordpress-multilingual/">

<link rel="alternate" hreflang="nl-NL"
      href="https://www.gettranslateall.com/nl-nl/make-wordpress-multilingual/">

<link rel="alternate" hreflang="x-default"
      href="https://www.gettranslateall.com/make-wordpress-multilingual/">

The canonical identifies the preferred URL for a page. Hreflang connects equivalent pages for different languages or regions. In this example, each language page has its own canonical while both share the same alternate links. A self-reference is the hreflang link that points to the page you are viewing.

3. Fix missing links and conflicting URLs

If the German page points to the Dutch page, the Dutch page should point back. Check that each target is the final public HTTPS URL. Fix any redirect, missing page or noindex directive in the set. If two plugins publish conflicting links, identify which plugin or theme generates the tags before changing settings.

The x-default tag can identify a fallback when the other tags do not match. In this example it points to the English version of the same guide. It is optional. Test again after clearing the page cache so you can check the public HTML visitors receive.

4. Inspect both URLs in Google Search Console

Inspect each language URL separately. A live test helps you check whether Google can access the current page. The indexed report can show the canonical Google selected if indexing data is available. Compare that report with the declared canonical and use the HTML checks above to verify the return links.

A common question about language folders

Does /de/ automatically mean hreflang must be de?

The folder and the hreflang code are separate. Choose de for German generally or de-DE for German aimed at Germany. For Dutch aimed at the Netherlands use nl-NL. The code should match the intended audience and the actual page content.

Read the TranslateAll documentation

Read Google’s hreflang guidance

Learn how to make WordPress multilingual