WordPress.org

Support

Support » Plugins and Hacks » Galleria–Disable Lightbox and showInfo for iPhone Only

Galleria–Disable Lightbox and showInfo for iPhone Only

  • JUST NOTICED THIS NEEDS TO BE IN HACKS FORUM….
    The below function has been suggested by the Galleria developers to disable the lightbox and showinfo options for iphone (or specific screen size) since the behavior is somewhat buggy and unpredictable.

    Any suggestions where this function should be placed for WordPress implementation?

    Galleria.ready(function(){
    var galleria = this;
    if( /*check window size*/ ){
    galleria.setOptions({lightbox:false, showInfo:false);
    } else {
    galleria.setOptions({lightbox:true, showInfo:true);
    }
    });

    Any direction would be most appreciated.

  • The topic ‘Galleria–Disable Lightbox and showInfo for iPhone Only’ is closed to new replies.