WordPress.org

Ready to get started?Download WordPress

Forums

WP Mobile Detect
wpmd_is_phone() true on OPERA desktops (7 posts)

  1. Jonas Lundman
    Member
    Posted 4 months ago #

    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/

  2. Gizmo
    Member
    Posted 4 months ago #

    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

  3. undersound
    Member
    Posted 3 months ago #

    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

  4. undersound
    Member
    Posted 3 months ago #

    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.

  5. undersound
    Member
    Posted 3 months ago #

    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.

  6. Jonas Lundman
    Member
    Posted 3 months ago #

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

  7. Gizmo
    Member
    Posted 3 months ago #

    Awesome, my site is fixed too. Thank you!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.