• Resolved sadhaka

    (@sadhaka)


    With this new version of the plugin, how can I exclude the iPad from being given the mobile theme?

    I knew how to do it in the old version – I used to add ‘iPad’ to the list in bnc_wptouch_get_exclude_user_agents() function in:
    ~/wp-content/plugins/wptouch/wptouch.php

    … but I can’t find that function in the new version of the plugin.

    The reason I want to exclude the iPad is because the Facebook iOS app’s in-app browser is (still) showing the mobile iPhone theme.

    http://wordpress.org/plugins/wptouch/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sadhaka

    (@sadhaka)

    OK well I seem to have succeeded in doing it by going to:

    wp-content/plugins/wptouch/core/mobile-user-agents.php

    … and inserting:

    array( 'iPad', 'Mobile' )

    … into the $wptouch_tablet_list array (underneath where the comment says “Nothing excluded yet”)

    I don’t know whether this would have been achieved by some setting in the plugin admin interface. If there is such a setting I missed it. Perhaps there should be one?

    Thread Starter sadhaka

    (@sadhaka)

    Ooops – my mistake – I should have inserted just:

    'iPad'

    … since the logic was expecting a string and not an array.

    iPad is now excluded, and the iOS FaceBook app’s in-app browser won’t show the mobile theme.

    But it would be nice if there was a setting in the admin UI to do this.

    Perhaps there is and I missed it?

    iPad is not supported by default, so it should never be shown to iPads. No need to make modifications.

    Thread Starter sadhaka

    (@sadhaka)

    Yes but if I don’t do this, then the FaceBook for iPad app’s in-app browser shows the mobile theme. If I do make this modification, it doesn’t.

    I’ve tested this time and again, and it is necessary to make this modification if you want FaceBook’s iPad in-app browser (not Safari, but FaceBook’s in-app browser) to show the desktop theme and not the mobile theme.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How do I exclude the iPad please?’ is closed to new replies.