Want more timely Centmin Mod News Updates?
Become a Member

Wordpress Detect Mobile

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

  1. KinderOvO

    KinderOvO Member

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

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:34 PM
    Nginx 1.13.x
    MariaDB 5.5
    not via nginx AFAIK I know
     
  3. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    11:34 AM
    1.11
    10.2
    • Informative Informative x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:34 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:
    5:34 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.