-
Hello Rank Math Support,
I am experiencing an issue where my website’s Schema language remains set to en instead of da-DK, despite making several changes to my WordPress settings.
What I’ve Done So Far:
Changed WordPress site language to Danish (da-DK) via Settings → General.
Updated functions.php to force switch_to_locale(‘da_DK’);.
Manually added <html lang=”da-DK”> in header.php, which correctly reflects in the page source.
Added filters in functions.php to modify Rank Math’s OpenGraph and JSON-LD schema language to da-DK.
Cleared cache and ran a fresh test in incognito mode, yet the Schema markup (JSON-LD) still displays “inLanguage”: “en”.
Checked Rank Math settings but could not find an option to override Schema language manually.
Rebuilt Rank Math’s database index and recalculated SEO scores under Status & Tools.
Issue:
Despite these efforts, the Schema JSON-LD still outputs “inLanguage”: “en” instead of “da-DK”. This is affecting my structured data for Google, as I need it to correctly reflect Danish for local SEO.What I Need Help With:
Is there a setting in Rank Math to manually set the Schema language?
Does Rank Math override the WordPress language setting for Schema?
How can I ensure “inLanguage”: “da-DK” is properly reflected in Schema markup?
Looking forward to your guidance!Best regards,
Kasper
The ticket ‘Schema Language Not Updating to da_DK in Rank Math’ is closed to new replies.