WordPress.org

Ready to get started?Download WordPress

Forums

Galleria–Disable Lightbox and showInfo for iPhone Only (1 post)

  1. shareAll
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic