Viewing 5 replies - 1 through 5 (of 5 total)
  • The idea behind detecting mobile devices is not bad, bad not fail save, because it uses only device names in UA, but the detection is only as good as the database about available devices is currently. In most cases this is not the case. Device names changes almost weekly.

    But there is a simple way to detect and to differentate mobile devices and smartphones from tablet devices. The question is do you have a theme that do that as well?

    • This reply was modified 3 years, 6 months ago by serpentdriver.
    Thread Starter Nazar Hotsa

    (@bugnumber9)

    @serpentdriver In this particular case, I use Blocksy theme.
    What’s the simple way you mentioned? I thought about injecting JS to add/remove things based on screen width, is that what you mean?

    Plugin Support qtwrk

    (@qtwrk)

    LSCWP uses is_mobile() from wordpress built-in function , and WP will take ( lots if not all) tablet as mobile , a 3rd party detection plugin could be more detailed and accurate, but this will confuse LSCWP.

    I don’t really have a good solution for this case, I will bring it to our developers and see if they can come up with something

    I don’t really have a good solution for this case, I will bring it to our developers and see if they can come up with something

    This is how Google does it (and me):

    https://developer.chrome.com/docs/multidevice/user-agent/

    What’s the simple way you mentioned? I thought about injecting JS to add/remove things based on screen width, is that what you mean?

    No, see link in last post.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Mobile user agents for “Cache Mobile” feature’ is closed to new replies.