WordPress.org

Support

Support » Plugins and Hacks » Fancybox Iphone Theme images not scaling

Fancybox Iphone Theme images not scaling

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

    @ravanh

    It’s probably some CSS thing but I have no way of debugging that. Maybe you’ll be better off disabling fancybox for small screens. For this, you need to upgrade to the development version available on and then insert this code in a text widget or in the footer.php of your theme:

    <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>

    (change the values 500 of you want to switch fancybox off at a different max window size)

Viewing 1 replies (of 1 total)
  • The topic ‘Fancybox Iphone Theme images not scaling’ is closed to new replies.