Quantcast
Channel: Topic Tag: mobile | WordPress.org
Viewing all articles
Browse latest Browse all 22096

kallym on "[Plugin: Easy FancyBox] Disable fancybox for smalll screens"

$
0
0

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: http://bit.ly/11Vi6VU

http://wordpress.org/plugins/easy-fancybox/


Viewing all articles
Browse latest Browse all 22096

Trending Articles