Learn about Centmin Mod LEMP Stack today
Become a Member

Wordpress Detect Mobile

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

  1. KinderOvO

    KinderOvO Member

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

    34,590
    7,653
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,770
    Local Time:
    3:43 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    not via nginx AFAIK I know
     
  3. rdan

    rdan Premium Member Premium Member

    4,195
    1,014
    113
    May 25, 2014
    Ratings:
    +1,438
    Local Time:
    1:43 AM
    Mainline
    10.2
    • Informative Informative x 1
  4. eva2000

    eva2000 Administrator Staff Member

    34,590
    7,653
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,770
    Local Time:
    3:43 AM
    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:
    7:43 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.
     
..