Easy FancyBox
Fancybox Iphone+Theme images not scaling (2 posts)

  1. cescoCM
    Posted 3 years ago #


    I have an issue when opening :


    with an Iphone.

    As you can see if you click on any image/video the image opens very small and aligned to the left as if it load all the vertical resolution at once... I know it's a theme issue because if I change it to the default theme it works fine.

    I'm not an expert coder or developer, so if anyone could give me a starting point on where to start looking at I would be more than grateful.

    Thanks in advance.


  2. RavanH
    Plugin Author

    Posted 3 years ago #

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

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.