How Can I Change HTML Language in WordPress

by | Dec 2, 2013 | 4 comments

How Can I Change HTML Language in WordPress? If you go to your WordPress website page source you will see the default settings is <htmllang=”en-US” >. See below.

default html language wordpress

To change this default language setting go to Admin>Settings>General and change the Site Language from English (US) to English (UK), as below, and then click Save Changes.

set wordpress language in admin general settings



  1. Morshed Alam Suman

    This is the easiest way. But if I change language this way, it changes the language of dashboard too.
    Is there any way to change html lang attribute value without changing dashboard language. I want to keep them in English.

    Thank you.

  2. Yvette Boye

    Thanks for sharing. Changed from English to Norwegian. The change came at once. Perfect!

  3. Pierre-Yves Mathys


    How can I add a language not listed in the combobox ?
    I want to set it to “fr_CH” but in the combo I can found Franch for Belgium and french for Canada, or German for Switzerland, but I cannot found french for Switzerland
    And if I change the lang value in the wpconfig the dashboard is set to english – which is a problem for my customers who access to it


Submit a Comment

Your email address will not be published. Required fields are marked *

elan creative

We’re like the in-house website design team you always dreamed of, able to tell your story like nobody else, and focus on your bottom line along with you….

Elan Creative
UK: +44 (0)121 288 3449
NL: +31 (0)20 893 2923

freelance-website-designer s


Get a free quote for your website design project: