Welcome to Centmin Mod Community
Register Now

Wordpress Detect Mobile

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

  1. KinderOvO

    KinderOvO Member

    92
    1
    8
    Jan 13, 2015
    Ratings:
    +1
    Local Time:
    12:09 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

    54,907
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    12:09 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    not via nginx AFAIK I know
     
  3. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    10:09 PM
    Mainline
    10.2
  4. eva2000

    eva2000 Administrator Staff Member

    54,907
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    12:09 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    that would only detect the mobile device but not the resolution of the device
     
  5. SFLC

    SFLC Active Member

    223
    59
    28
    Dec 4, 2016
    The Canadas
    Ratings:
    +112
    Local Time:
    4:09 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.