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.

This plugin has been closed and is no longer available for download.

Ktai Style



“Ktai Style” is a plugin providing lightweight pages and simple admin interfaces for mobile phones. Especially, this plugin is optimized for Japanese mobile phone: NTT docomo, au by KDDI, SoftBank, E-MOBILE, and WILLCOM.

  • Show lightweight output for mobile phones.
  • Has simple admin feature.
  • Mobile themes can be customized based on WordPress theme spec.
  • Supports pictograms in mobile themes.
  • Shrink image and creates small thumbnails.
  • Split web pages along the page limit.
  • Check if the link target has mobile sites, along Mobile Link Discovery.
  • Can switch mobile/PC mode for smart phones (iPhone, Windows Mobile, etc) and non-phone devices (PSP, Nintendo DS, etc).


  • WordPress 2.8 or later
  • PHP 5.0 or later (NOT support PHP 4.x!!)
  • Available phone/gadgets: NTT docomo, au by KDDI, SoftBank, E-MOBILE, WILLCOM, iPhone/iPod touch (need to configure), Nokia, BlackBerry, Windows Mobile terminals, Palm OS handheld, Sharp Zaurus, PSP, Nintendo DS


The license of this plugin is GPL v2 or later.

Getting a support

To get support for this plugin, please contact below methods:

  1. Send an email to yuriko-ktaistyle @ YURIKO (dot) NET. (You need adjust to the valid address)
  2. Use contact form at (Japanese site)
  3. Post WordPress forum with ‘ktai-style’ tag.


  • Mobile view with Default mobile theme. Fist post with content, following posts are only title. Pictograms (icon of arrows, face, clock, numbers) are used for mobile theme. Menus are located at the lower part of screen.
  • Comment form for mobile.
  • Recent comments page is an individual page. Sidebars and widgets are not available.
  • Login form for mobile.
  • Mobile dashboard. Current status, recent comments, recent drafts are available. Menus are located at the lower part of screen.
  • Edit posts panel.
  • Mobile theme select panel (At the PC admin). You can select themes from screenshot of mobile theme and check the mobile output by preview.


  1. Unzip the plugin archive and put ktai-style folder into your plugins directory (wp-content/plugins/) of the server.
  2. If you do NOT need simple admin feature, omit admin folder in ktai-style folder.
  3. Activate the plugin.
  4. Configure the plugin at “Mobile Output” menu at the WordPress admin panel. The default configuration is optimized for generic use.

Moving wp-content, or wp-content/plugins directory to non-standard position

After WordPress 2.6, you can move wp-content, or wp-content/plugins directory to non-standard position. If you move the directory, additional configuration is needed.

  1. When installing the plugin, the permission of the ktai-style directory to 757 or 777, so that the webserver can touch the directory.
  2. Activate the plugin, then wp-load-conf.php file is automatically created. It is OK.
  3. If the file is not created, you need to edit ktai-style/wp-load.php manually. At line 20, change $wp_root variable to specify the absolute path to WordPress installed directory.

    e.g. WP diretory is /home/foo/public_html/wp-core/ and wp-content directory is /home/foo/public_html/wp-content/
    $wp_root = dirname(dirname(dirname(dirname(FILE)))) . ‘/wp-core/’;

Combination with WP Suer Cache

If you use WP Super Cache by Donncha, additional configuration is needed.

  1. Locate the file ktai-style/patches/supercache-plugin-ktaistyle.php into the directory under WP Super Cache. It will be ordinary wp-content/plugins/wp-super-cache/plugins.
  2. Activate Ktai Style and WP Super Cache.
  3. Enable Ktai Style Support option in the lower part of WP Super Cache admin panel.
  4. Turn on Mobile Device Support at WP Super Cache admin panel. Or, set Mod Rewrite Rules while Mobile Device Support` is turned off. Make sure below two or three lines is included in the Rewrite rule.
    RewriteCond %{HTTP_USER_AGENT} !^(DoCoMo/|J-PHONE/|J-EMULATOR/|Vodafone/|MOT(EMULATOR)?-|SoftBank/|[VS]emulator/|KDDI-|UP.Browser|emobile/|Huawei/|IAC/|Nokia|mixi-mobile-converter/)
    RewriteCond %{HTTP_USER_AGENT} !(DDIPOCKET;|WILLCOM;|Opera\ Mini|Opera\ Mobi|PalmOS|Windows\ CE;|PDA;\ SL-|PlayStation\ Portable;|SONY/COM|Nitro|Nintendo)
  5. If you want to apply mobile output for iPhone, iPod, and Android, below line is need after anove 2 lines.
    RewriteCond %{HTTP_USER_AGENT} !(iPhone;|iPod;|Android)

Combination with WP-Cache

If you use WP-Cache by gallir, additional configuration is needed.

  1. Create wp-cache-config.php file by duplicating wp-cache-config-sample.php file.
  2. Around line 19 of wp-cache-config.php, next to the line setting cache_rejected_user_agent, add below code. If you move wp-content directory to non-standard position, adjust the path to the directory.
    if (file_exists(ABSPATH. ‘wp-content/plugins/ktai-style/patches/wpcache.php’)) {
    include ABSPATH. ‘wp-content/plugins/ktai-style/patches/wpcache.php’;
  3. Locate wp-cache-config.php under wp-content/ and activate WP-Cache plugin.


PHP7 未対応


しかし、php7 においては preg_replace の e 修飾子を用いたphpコードの実行がサポートされなくなったため、もはや小手先のパッチではいかんともしがたい状況になりました。


Only one plugin for Japanese mobile phones

I’m using this plugin to expand my web site as a mobile phones site.
It is working without a problem in latest WordPress, though first editing for a theme file and the setting of WP Super Cache had troubled.

Read all 2 reviews

Contributors & Developers

“Ktai Style” is open source software. The following people have contributed to this plugin.


Translate “Ktai Style” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


2.0.5 (2011-08-21)

  • Fixed the bug that settings of individual theme for smart phones (iPhone, Android, BlackBerry) is not useless.
  • Enabled Dashboard and Profile panels for WordPress 3.1 or later.

2.0.4 (2011-08-18)

  • Fixed the bug that close tag of comments list was not printed. Syntax error with iPhone/ipod touch is corrected.
  • Fixed the bug that strings outside img element inside a element are ignored. (e.g. <a href="XXXX">IGNORED<img src="YYYY" /></a>)
  • Fixed the bug that images at multi sites with WordPress 3.0 or later is treated as single sites.
  • Stop admin feature at WordPress 3.1 or later. Because, editing comments panel is not compatible.
  • Fixed the bug that the link of canceling edit/back to the list is not shown at editing pages.
  • Ktai Style considers that termnial ID cannot get at SSL connection. ks_is_require_term_id() returns false.
  • ks_in_network() followed the new IP addresses of major four careers.
  • Added recent phones of au by KDDI for ks_term_name().

2.0.3 (2010-05-13)

  • Fixed HTML syntax error at footer.php of Classic, Default theme.
  • Fixed bug that ks_term_name() does not show the proper name for some EZweb phones.

2.0.2 (2010-04-22)

  • Fixed infinity loop problem (causes HTTP error 502 etc) at Ktai Style
  • Fixed appearing white screen at mobile theme preview when you use P2 theme for PC.
  • Improved compatibility for PHP without mbstring extension. (2010-04-20)

  • ks_in_network() followed the new IP addresses of SoftBank.

2.0.1 (2010-04-20)

  • Exclude Apple iPad from mobile output.
  • Fixed not shown images which does not have alt attributes. (bug only at Ktai Style 2.0.0)
  • Fixed not shown images whose path has a number-only level on Windows servers.
  • Show message at login form if mobile login session has been expired.
  • Show security notice at mobile admin panel for cookie-disabled phones.
  • Fix to remove the current mobile theme from mobile themes list, if the current theme is in ktai-themes directory.

2.0.0 (2010-03-22)

  • Limit supporting WordPress version into 2.8 and later.
  • Distributed at the official WordPress plugin direcotry.
  • Move settings menu into individual admin menu.
  • Abolish “Image output for 3G phone, WILLCOM, smartphones, etc” setting.
  • You can select a mobile theme by list of screenshots.
  • Enabled viewing mobile pages with logging-in if you use cookie available phones.
  • You can post comments with logging-in with cookie available phones.
  • Show an “edit” link if you have the privilege to change a post/page/comment with cookie available phones.
  • Abolish logging-in feature for NTT docomo mova phones, and SoftBank PDC phones.
  • When clicking “Logout” at comment form for log-in users, return to the comment form insted of login form.
  • Support “Trash” of WordPress 2.9.
  • Fixed a problem that white screen of PHP error are sometimes shown by loading mobile theme in spite of viewing by PC.
  • Fixed a problem the number of comments is invalid (two are shown for zero).
  • Detect Mobage-town, and Hatena Mobile Gateway as search engines.
  • Fixed garbling under mbstring.encoding_translation = On.
  • Reads functions.php of current PC theme for mobile mode.
  • Abolish transferring path/URI of get_stylesheet(), get_templates(), load_theme_textdomain(), etc from PC themes to mobile themes. Theme functions now returns PC themes. Please use ks_get_theme(), ks_get_theme_directory(), ks_get_theme_uri() to get mobile theme.
  • ks_term_name() now returns a name of the search engine. To get a terminal name of the engine, use ks_term_name(KTAI_NOT_ECHO, false);.
  • Change the default value of the before parameter of ks_login_link() into empty.
  • Abolish “redir/ktai_syle.php” filter. Please use redir.php template.
  • Change the name of exclusive filters to “ktai_XXXXX” from “XXXXX/ktai_style.php”
  • Change the name of constants to “KTAI_XXXXX” from “KS_XXXXX”.


  • (Version 1.83 to 1.99 has been branched. Please see the history of 1.83 package.)

1.82 (2010-03-06)

  • Support the new phones of au (by KDDI), and EMOIBLE “H31IA”.
  • Not convert of the math images by WP-LaTeX plugin.
  • Not use redirect page for external link if accessed by search engines.
  • Fixed a problem that chages of “Date and time format of posts/comments” are not reflected.
  • Fixed a problem that deleting of the plugin causes an error.
  • Fixed a problem that backslashes at post, page, comments are erased (NOT an SQL injection).
  • ks_in_network() supports the new IP address of au, WILLCOM at .
  • Renamed ks_image_alignment filter into ktai_image_alignment.


0.7.0 (2007-09-19)

  • Initial version.