Want to subscribe to topics you're interested in?
Become a Member

Wordpress Detect Mobile

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

  1. KinderOvO

    KinderOvO Member

    54
    1
    8
    Jan 13, 2015
    Ratings:
    +1
    Local Time:
    8:57 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

    31,023
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    8:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    not via nginx AFAIK I know
     
  3. RoldanLT

    RoldanLT Well-Known Member

    3,981
    966
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,331
    Local Time:
    6:57 PM
    1.11
    10.2
    • Informative Informative x 1
  4. eva2000

    eva2000 Administrator Staff Member

    31,023
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    8:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    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:
    12:57 PM
    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.