Reply To: Size on small screens too small

Your Account / Forums / Easy FancyBox Pro / Size on small screens too small / Reply To: Size on small screens too small

May 25, 2015 at 10:22 pm #5095

Hi subhash,

In the next release, there will be an option to disable FancyBox for small screen sizes. Until then, you could add the following script snippet to your sites footer.php (must come before the usual <?php wp_footer(); ?> there!) or in a Text widget:


<script type="text/javascript">
var pixelRatio = window.devicePixelRatio || 1;
if(window.innerWidth/pixelRatio < 641 ) {
  easy_fancybox_handler = null;
};
</script>

Note that the value 641 is an example for a max 641px wide screen size. It can be changed to anything you prefer 🙂