WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
[resolved] Mobile not working damn! Help help help! (2 posts)

  1. a_ahmed
    Member
    Posted 1 year ago #

    So I have a big problem now. Just spent quite some time rebuilding posts on my wordpress page with custom high res thumbnails, fancy'd up etc... and with class fancybox-youtube, got it all working beautiful on workstation then tested on mobile and none of the links open in mobile.

    How can i fix this?!? Is there a way if on mobile to open direclty youtube link instead of the fancybox event?

    Help help help!

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

  2. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    Hi ahmed,

    To disable fancybox on smaller screens, you need to upgrade to the development version (find it on http://wordpress.org/extend/plugins/easy-fancybox/developers/ under Other Versiosn) and then ad the following code to a text widget or your themes footer.php:

    <script type="text/javascript">
    if(window.innerWidth < 500 || window.innerHeight < 500 || window.outerWidth < 500 || window.outerHeight < 500 ) {
      jQuery(document).off('ready gform_post_render', easy_fancybox_handler);
    };
    </script>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.