Support » Plugin: WP Mobile Detect » wpmd_is_phone() true on OPERA desktops

  • Hi,

    wpmd_is_phone() works on every browser exept on Opera. It returns true on a desktop computer. All other browsers and devices is ok (Ive tested)

    Author: The core php script (from github) might treat opera as Chrome

    I just need to detect if a user is on a phone device or not, all other devices lika pads, tablets, xboxes or whatever I don care about.

    Any workaround suggestions?

    http://wordpress.org/plugins/wp-mobile-detect/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Gizmo

    (@yanyan_yauyahoocom)

    Hello,

    We have the same problem. I just noticed our site is not working properly on Opera. We use Mobile Detect to display different header on different device. Now all our pages are missing header on Opera. Please provide any suggestion.

    Thanks

    Same problem here.
    Working with Opera 18.0, and its detected as mobile, so the sidebar and navigation wont load…
    The other mobile detect plugins only switch the themes, but I need to exclude some functions only for mobile…

    Regards

    The detection code was updated:
    http://mobiledetect.net/
    Download the source, open the Mobile_Detect.php and copy the code into the wp-mobile-detect/mobile-detect.php (plugins->editor->wp mobile detect).
    Opera works for me again.

    CAUTION:
    There are 2 mobile-detect.php.
    Don’t overwrite the one with the plugin!

    <?php
    /*
    Plugin Name: WP Mobile Detect
    Version: 1.2.0
    Plugin URI: http://jes.se.com/wp-mobile-detect
    Description: A WordPress plugin based on the PHP Mobile Detect class (Original author Victor Stanciu now maintained by Serban Ghita) incorporates functions and shortcodes to empower User Admins to have better control of when content is served
    Author: Jesse Friedman
    Author URI: http://jes.se.com
    License: GPL v3

    DON’T touch this one!!

    Take the one with the MIT License at the beginning.

    Great, Im gonna take a look at this fix, thx @undersound

    Gizmo

    (@yanyan_yauyahoocom)

    Awesome, my site is fixed too. Thank you!

    Nice worked for me, had the exact same problem. Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘wpmd_is_phone() true on OPERA desktops’ is closed to new replies.