WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
[resolved] Suggestion: special mobile support for next version (5 posts)

  1. WayneM1
    Member
    Posted 1 year ago #

    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/

  2. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    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>
  3. WayneM1
    Member
    Posted 1 year ago #

    Awesome. Thanks! :-)

  4. dypost20
    Member
    Posted 1 year ago #

    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?

  5. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic