Size on small screens too small

Your Account / Forums / Easy FancyBox Pro / Size on small screens too small

Tagged: , ,

  • Author
    • May 20, 2015 at 6:52 pm #5053

      Another problem on small screens, tested with an actual iPhone and an old iPod Touch:

      The image doesn’t open as large as possible but shows rather small in a broder white box. When closing the image becomes bigger for a very short time. For example:

    • May 20, 2015 at 6:52 pm #5095

      Hi subhash,

      In the next release, there will be an option to disable FancyBox for small screen sizes. Until then, you could add the following script snippet to your sites footer.php (must come before the usual <?php wp_footer(); ?> there!) or in a Text widget:

      <script type="text/javascript">
      var pixelRatio = window.devicePixelRatio || 1;
      if(window.innerWidth/pixelRatio < 641 ) {
        easy_fancybox_handler = null;

      Note that the value 641 is an example for a max 641px wide screen size. It can be changed to anything you prefer 🙂

    • May 20, 2015 at 6:52 pm #5122

      Thank you very much!
      (I was not notified of your advice so it took long to see it.)

  • You must be logged in to reply to this topic.