Support » Plugin: Any Mobile Theme Switcher » php to hide/show widget or any html on mobile (eg: !is_mobile)

  • Hi all, i love this plugin. anyway i want to customize my themes on mobile device view (to more minimal), some of widget very high usage or big/not responsive.

    How to hide widget/code/html on mobile view using php?

    sample

    <?php if( !is_mobile() ) { ?>
    <!– ## BEGIN: below is widget or anything to hide on mobile ## –>

    ANY BIG MEMORY USAGE WIDGET TO HIDE, PUT HERE. ONLY SHOW ON DESKOP.

    <!– ## / END: hide mobile code ## –>
    <?php } ?>

    What should be replaced with that !is_mobile() ???

    http://wordpress.org/extend/plugins/any-mobile-theme-switcher/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘php to hide/show widget or any html on mobile (eg: !is_mobile)’ is closed to new replies.