Plugin Directory

!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.


CJK-AutoTagger automatically wraps CJK characters in your site with `<span lang=""></span>` tags, so that you can style them separately.

Do you often mix Latin letters and Chinese, Japanese or Korean (CJK) characters in the same post or in the title? Did you find it difficult to style both types of characters satisfactorily using the same CSS style?

CJK-AutoTagger Automatically wraps CJK characters in your site with <span lang=""></span> tags, so that you can style them separately. You can choose what to <span>-wrap (refer to the screen shot) and what language code to use.

To style CJK and non-CJK (usually Latin) characters separately, follow the example below:

// Style non-CJK characters
#content {
  font-family: Arial, Verdana; 
  font-size: 12px;

// Style CJK characters
#content:lang(zh-HK) {
  font-family: "Microsoft JhengHei", "MingLiu"; 
  font-size: 14px;

For more information on styling with language codes, check out this reference from W3C.

For advanced users: to auto-detect and <span>-wrap your custom strings in templates, use the following function:

string cjk_autotagger( string $string [, string $lang_code ] )


echo cjk_autotagger($str, "zh-HK");

Requires: 2.7 or higher
Compatible up to: 2.92
Last Updated: 6 years ago
Active Installs: Less than 10


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.