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

  1. Jonas Lundman
    Posted 2 years ago #


    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?


  2. Gizmo
    Posted 2 years ago #


    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.


  3. undersound
    Posted 2 years 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...


  4. undersound
    Posted 2 years ago #

    The detection code was updated:
    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
    Posted 2 years ago #

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

    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
    Posted 2 years ago #

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

  7. Gizmo
    Posted 2 years ago #

    Awesome, my site is fixed too. Thank you!

  8. edarioq
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Mobile Detect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.