Join the community today
Register Now

Wordpress Detect Mobile

Discussion in 'Blogs & CMS usage' started by KinderOvO, Dec 23, 2015.

  1. KinderOvO

    KinderOvO Member

    65
    1
    8
    Jan 13, 2015
    Ratings:
    +1
    Local Time:
    1:55 PM
    1.4
    10
    Staff currently use the script "serbanghita/Mobile-Detect · GitHub" in my wordpress to detect if device and computer, tablet or mobile, and have problems with wp-SuperCache, is there any way to detect native resolution of the device or browser?
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,055
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    1:55 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    not via nginx AFAIK I know
     
  3. rdan

    rdan Premium Member Premium Member

    4,255
    1,034
    113
    May 25, 2014
    Ratings:
    +1,486
    Local Time:
    11:55 AM
    Mainline
    10.2
    • Informative Informative x 1
  4. eva2000

    eva2000 Administrator Staff Member

    36,055
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    1:55 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    that would only detect the mobile device but not the resolution of the device
     
  5. SFLC

    SFLC Active Member

    224
    59
    28
    Dec 4, 2016
    The Canadas
    Ratings:
    +112
    Local Time:
    5:55 AM
    1
    10
    This doesn't seem to work for me, breaks the page it's on for some reason. I'll have to see why this is happening. I had a different way of doing it on an old site, I'll check that out if I can find it on one of my backup external drives and post it here. It didn't rely on external files.
     
..