WordPress.org

Forums

mobble
Working with included files? (2 posts)

  1. wedideas
    Member
    Posted 2 years ago #

    Hello,

    I'm including a php file in a widget area that includes some mobble detection such as is_handheld() and for some strange reason it's working on my desktop but if I view the same page through my HTC or an iPhone using the Apple SDK simulator the code isn't working.

    Should it matter that I'm running the detection from an included page?

    Thanks,

    James

    http://wordpress.org/extend/plugins/mobble/

  2. Scott (@scottsweb)
    Member
    Plugin Author

    Posted 2 years ago #

    Hi James
    Includes should be fine. It might be that the detection for those particular browsers/user agents is a little off. is_handheld() can be a bit vague (it tries to catch handheld games consoles for example). You may want to try is_mobile() || is_tablet().

    You may also want to try updating the mobile-detect.php library (http://mobiledetect.net/) as a new version is out. I hope to get around to this soon.

    Scott

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • mobble
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic