CHL-Change HTML Lang is a simple WordPress SEO plugin for changing HTML language attribute(language_attributes();) value in header.
Many of us use WordPress(Admin area UI) in the English version but write their content in another language. So by default WordPress uses English(en-US) language attribute for
<?php language_attributes(); ?> used in header.php.
For example – If you write your content in Hindi language but use WordPress(Admin area UI) in English, your html language attribute must be hi or hi-IN for many reasons including SEO but WordPress echo html language attribute of installed locale version (en-US by default).
You can’t change HTML language attribute directly so I created this plugin(CHL-Change HTML Lang) that allows you to change HTML language attribute from the dashboard.
After activating this plugin simply visit Settings → General and change HTML lang tag.
Bug reports for CHL-Change HTML Lang are welcomed on GitHub.
- Go to your admin area and select Plugins → Add New from the menu.
- Search for “CHL-Change HTML Lang”.
- Click install.
- Click activate.
Navigate to Settings → General.
OR Go to your admin area and select Plugins → Add New from the menu. Upload the file
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Navigate to Settings → General for changing HTML lang=
Does this plugin support language_attributes(xhtml) ?
Simply NO. Next time.
I have lower version of WordPress installed than what this plugin requires?
You can use it without any errors.
Contributors & Developers
“CHL-Change HTML Lang” is open source software. The following people have contributed to this plugin.Contributors
“CHL-Change HTML Lang” has been translated into 4 locales. Thank you to the translators for their contributions.
Translate “CHL-Change HTML Lang” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
- fixed Yoast Seo schema inLanguage data
- tested up to WordPress 6.0
- fixed Yoast og locale tag issue
- security fix
- Tested up to WordPress 5.3
- Tested up to 5.1.1
- Add support for Yoast Open Graph tag (og:locale)
- Bug Fix
- Small bug fixes
- Initial Release