[Resolved] Change Lang tag without changing backend language

Home Forums Support Change Lang tag without changing backend language

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1128160
    Jacob

    Hi!

    I’m not sure if this is a native WordPress or a generatepress thing.

    By default we noticed the lang tag is set to English/USA:

    lang="en-US"

    I’m aware if you change the language in settings to our target language, it will change this tag.

    However, this also also changes the backend language of WordPress. For example, if I changed the languages settings to Spanish, it will change the lang tag, however the entire backed/wp-admin area will be in Spanish.

    Is their a way to keep the admin area in English and change the ‘lang’ tag to our language of choice? ie an easy php function or something.

    Thanks for your help!

    #1128341
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Have you tried changing the “Language” option in “Users > Your Profile”. That should set the Dashboard language for your user while keeping the front-end using whatever you have set in “Settings > General”.

    Let me know 🙂

    #1130410
    Jacob

    Great thanks – worked like a charm!

    #1130771
    Tom
    Lead Developer
    Lead Developer
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.