Changing WP language settings also changes “html lang” attribute
-
Hello all,
There may be a simple answer to this, but does changing the “Website” language in the WordPress dashboard is supposed to affect the the “href lang” attribute of the site as well?
In my case I would require the WP dashboard to be in English while the frontend (the actual website) is in German. Sounds easy enough, but when checking the source code after switching to English, I get this:
Before:
<!DOCTYPE HTML>
<html lang=”de-DE”After:
<!DOCTYPE HTML>
<html lang=”en-US”Therefore, it looks like when changing the language in WordPress (the option being called “Website” rather than “Dashboard” language) is affecting the html lang tags as well.
Not wanting to mess up with any of the SEO, I wonder if switching languages within WordPress also affects the frontend in any way. Surly it must be possible to have the dashboard in one language and the actual website in another language.
Thanks all for your help!
- The topic ‘Changing WP language settings also changes “html lang” attribute’ is closed to new replies.