Disable fancybox for smalll screens
-
I need to disable fancybox on small screens. I read your FAQ and see where you recommended using:
<script type="text/javascript"> if(window.innerWidth < 800 || window.innerHeight < 800 || window.outerWidth < 800 || window.outerHeight < 800 ) { jQuery(document).off('ready gform_post_render', easy_fancybox_handler); }; </script>
That did not work for me. I was confused by the gform_post_render as I don’t use gravity forms, so I removed that and changed that line to:
jQuery(document).off('ready', easy_fancybox_handler);
That didn’t work either. I also found a version that added
var pixelRatio = window.devicePixelRatio || 1;
But none of the combinations I tried will work.
Do you have any advice?
link: https://bit.ly/11Vi6VU
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Disable fancybox for smalll screens’ is closed to new replies.