WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Suggestion: special mobile support for next version

[Resolved] Suggestion: special mobile support for next version

  • This is an awesome plugin that makes fancy stuff easy! Thanks 🙂

    The theme I use for all of my WP installations has really great mobile support. But, it doesn’t do anything to help disable the Easy FancyBox functions when the device screen size is small enough that the pop-ups are more of a hindrance than a help.

    It would be really super-cool if in a future version there was automatic disabling of the Easy FancyBox pop-ups based on user-agent and/or device screen size.

    Again, thanks for the great plugin.

    http://wordpress.org/extend/plugins/easy-fancybox/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author RavanH

    @ravanh

    Yes, it is planned for the next release. As an option anyway. Until then, install the current development version that you can find on http://wordpress.org/extend/plugins/easy-fancybox/developers/ and add the following code in a sidebar text widget:

    <script type="text/javascript">
    if(window.screen.width < 500 || window.screen.height < 500) {
      jQuery(document).off('ready gform_post_render', easy_fancybox_handler);
    }
    </script>

    Awesome. Thanks! 🙂

    I’m having trouble getting this code to work on my homepage, (which doesn’t have a sidebar). Probably sometime simple I’m neglecting, but would there be other places I could put the script?

    Plugin Author RavanH

    @ravanh

    Yes, put it in you footer.php template. Just before the closing body tag wiil do. No need to put it in a sidebar anymore then.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Suggestion: special mobile support for next version’ is closed to new replies.