Disable fancybox on iframes on mobile
-
Is there a way to disable fancybox on just iframes when viewing on mobile devices?
I viewed (https://www.ads-software.com/support/topic/disable-fancybox-for-smalll-screens?replies=14) but I really want to disable just the iframes.
Also, What’s the best way to add this to my functions.php or footer.php, since not all my pages have widgets.
When I tried testing this, I got an error. Probably because I need add the function? but I’m not familiar with PHP:
<script type="text/javascript"> var pixelRatio = window.devicePixelRatio || 1; if(window.innerWidth/pixelRatio < 641 ) { easy_fancybox_handler = null; }; </script>
Thanks so much!!!! Great plug-in!!!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Disable fancybox on iframes on mobile’ is closed to new replies.