Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi kikib, this will be very hard to do because it’s the script that sets the dimensions, not a style rule…

    Thread Starter kikib

    (@kikib)

    Then what do you suggest I can do so that on desktop, the popup window will be 70% wide but in mobile, 90% wide?

    There is only the option to disable the light box for small screen devices by adding script like this to a text widget:

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

    Thread Starter kikib

    (@kikib)

    ??? Shouldn’t I be adding this script code to the head area. What do you mean by adding this to a text widget?

    Yes, you can paste this in the header.php of your theme too but make sure it comes AFTER the wp_head() call. Or in the theme’s footer.php but BEFORE the wp_footer() call.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Window box dimensions in mobile version’ is closed to new replies.