Support » Plugin: mobble » Lenovo

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Scott (@scottsweb)

    (@scottsweb)

    The whole mobile detect PHP library is available via $mobble_detect. So you should be able to do something like:

    global $mobble_detect;
    if ( $mobble_detect->is( 'LenovoTablet' ) ) { ...

    Hope that helps!

    Hi
    No, sorry it doesn’t work.
    Its not working for anything, but i also don’t get a php error.

    i have tried is( ‘LenovoTablet’ ) is( ‘Tablet’ ) is(‘Mobile’)… nothing happend

    here is my code:
    global $mobble_detect;
    if ( $mobble_detect->is(‘mobile’) ) {
    echo “<script type=’text/javascript’>alert(‘is mobile’);</script>”;
    wp_enqueue_style(‘mobile’, get_template_directory_uri() . ‘/css/navigation-mobile.css’);
    }

    Any hint for me ?
    best volker

    Plugin Author Scott (@scottsweb)

    (@scottsweb)

    Without testing I am not 100% sure. Try:

    global $mobble_detect;
    if ( $mobble_detect->isLenovoTablet() ) {
    Plugin Author Scott (@scottsweb)

    (@scottsweb)

    More examples here: http://mobiledetect.net/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Lenovo’ is closed to new replies.