這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

CHL-Change HTML Lang

外掛說明

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.

螢幕擷圖

安裝方式

  1. Go to your admin area and select Plugins Add New from the menu.
  2. Search for “CHL-Change HTML Lang”.
  3. Click install.
  4. Click activate.
  5. Navigate to Settings General.

  6. OR Go to your admin area and select Plugins Add New from the menu. Upload the file chl-change-html-lang.zip.

  7. Activate the plugin through the ‘Plugins’ menu in WordPress.
  8. 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.

使用者評論

2021 年 6 月 26 日
Was searching for a method to just change the default html lang and not mess with other languages on the html, for a multi language site. On the same time, I wanted the main wordpess backend language to English, because changing it messed with some php variables. This plugin did exactly what I needed.
2019 年 8 月 24 日
Wonderful. Exactly what I was looking for. Thanks a million, Pratik, for making this plugin available to anyone in need of changing the language of posts without having to change the entire admin interface’s language. This option should be part of WordPress by default.
2018 年 11 月 7 日 1 則留言
Great plugin to change lang=”en_us” to lang=”en” on Wordpress
閱讀全部 4 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈CHL-Change HTML Lang〉的開發相關工作。

參與者

〈CHL-Change HTML Lang〉外掛目前已有 5 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈CHL-Change HTML Lang〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.6

  • tested up to WordPress 6.6

1.1.5

  • tested up to WordPress 6.3

1.1.4

  • fixed Yoast Seo schema inLanguage data

1.1.3

  • tested up to WordPress 6.0
  • fixed Yoast og locale tag issue

1.1.2

  • security fix

1.1.1

  • Tested up to WordPress 5.3

1.1.0

  • Tested up to 5.1.1

1.0.3

  • Add support for Yoast Open Graph tag (og:locale)

1.0.2

  • Bug Fix

1.0.1

  • Small bug fixes

1.0

  • Initial Release