WordPress.org

Ready to get started?Download WordPress

Forums

Lightbox Plus Colorbox
[Plugin: Lightbox Plus] Browser Resize & Mobile orientation change (2 posts)

  1. janubande007
    Member
    Posted 1 year ago #

    Hello,

    I'm wondering why the lightbox does not auto-change its size when the browser is resized or on a mobile phone the orientation changes (portrait to landscape & vice versa).

    PS...if the slideshow is playing, the next picture (not current one) to be loaded does resize appropriately, however, I may not always want to enable autoplay or have a slide show play.

    Can this be fixed?

    Thanks.

    http://wordpress.org/extend/plugins/lightbox-plus/

  2. eli0086
    Member
    Posted 1 year ago #

    @janubande007:
    I don't know if you were able to find a better solution yet, but I added to the css (I'm using the "shadowed" version).
    Go into colorbox.css and add a conditional statement for your differing screen sizes for the content being loaded.
    See the following:

    @media screen and (max-width: 400px) {

    #cboxLoadedContent {
    max-width:400px!important;}

    }

    It doesn't allow it to go full screen or anything, but it helps the photo from being so huge in mobile window. It's a start until a better solution is found. Hope it at least helps a little.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic