WordPress.org

Support

Support » Plugins and Hacks » Easy FancyBox » [Resolved] De-activate for mobile?

[Resolved] De-activate for mobile?

Viewing 1 replies (of 1 total)
  • Plugin Author RavanH

    @ravanh

    Hi, you needed the development version… Which has just been released as 1.5.0 so from now on you can use:

    <script type="text/javascript">
    var pixelRatio = window.devicePixelRatio || 1;
    if(window.innerWidth < 500 || window.innerHeight < 500 || window.outerWidth < 500 || window.outerHeight < 500 ) {
      jQuery(document).off('ready gform_post_render', easy_fancybox_handler);
    };
    </script>

    Put it in a text widget or in your themes footer.php

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] De-activate for mobile?’ is closed to new replies.
Skip to toolbar