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.

Plugin Name: CJK-AutoTagger


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"); 


  • CJK-AutoTagger Setting page.

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Browse the code