• Resolved ichentsai

    (@ichentsai)


    WPtouch 1.9.8.9 on Android 4.1.1 default browser CSS failure

    After extensive Googling, I found the solution and it works.

    Problem define: (please see the image)
    http://bloggingfrom.tv/wp/2013/06/02/10550

    Solution:
    http://8wired.jp/blog/753

    Please add the following codes in wptouch/wptouch.php

    #solving android 4.1 CSS problem, via   http://8wired.jp/blog/753
    function wptouch4jb() {
      global $wptouch_plugin;
      if(isset($wptouch_plugin) && $wptouch_plugin->applemobile === true && $wptouch_plugin->desired_view == 'mobile') {
        if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest')
          unset($_SERVER['HTTP_X_REQUESTED_WITH']);
      }
    }
    add_action('init', 'wptouch4jb');
    #end of added code

The topic ‘[Plugin: WPtouch] WPtouch on Android 4.1.1 browser CSS failure (solution)’ is closed to new replies.