Lightbox size

Discussion in 'Mumblr' started by Pavel, Feb 6, 2016.

  1. Pavel

    Pavel Member

    7
    0
    Hello everyone,

    From galley view when pressing "read more" the post opens in a lightbox, is it possible to set a maximum width of the lightbox window?

    Regards
    Pavel
     
  2. Norman Durkee

    Norman Durkee Well-Known Member Moderator

    272
    45
    Hey @Pavel , from within the Mumblr controls no there is no option for adjusting the lightbox size, there may be some code you can insert to achieve this but I think @Alex Wiley may be the one to ask about that!
     
  3. Alex Wiley

    Alex Wiley Product Specialist / Widget Development Staff Member Advisory Group

    164
    51
    Hey @Pavel,

    As @Norman Durkee said, there is no native way to control the width of the lightbox however it can be manipulated with some code, you do however do this at your own risk. It depends on what your purpose is for changing the Lightbox default size. By default the lightbox will adjust to fit all content equally so by changing it you change the Lightbox settings for all lightboxes.

    If you wanted to set a minimum width and height that you want the lightboxes to be you could use the following code (Object > Insert HTML):
    HTML:
    <style>
    .featherlight-content {
        min-width: 700px !important;
        min-height: 1000px !important;
    }
    </style>
    Just change the values of the pixels.

    Alternatively, you may want to set a maximum size the Lightbox can go, which you can do with:
    HTML:
    <style>
    .featherlight-content {
        max-width: 700px !important;
        max-height: 1000px !important;
    }
    </style>
    Again, you make these changes at your own risk, but i'd love to see what you come out with!

    Take care,
    Alex
     
  4. Ricardo Hudson

    Ricardo Hudson Member

    5
    0

Share This Page