Lightbox image dimensions - by lilleliis

3 replies2 participantsUpdated by Eva Kemp

  • Avatar: lilleliis
    lilleliis
    Participant

    I would like the images to open in lightbox in full size. At the moment they appear a little smaller than the photos I insert. Which settings should I change?

    Thank you.

    3 Answers

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    You can try to add this code in custom.css file:

    img.mfp-img {
        width: 1000px !important;
        max-width: 100% !important;
    }

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: lilleliis
    lilleliis
    Participant

    I´ve added the code.
    However, 1000px was way too big so I changed it to 800.
    The code works perfectly with landscape images, but it compresses portrait photos. Please see the screenshots in the private content.

    Which code should I use so that both images types look good in lightbox?
    Thanks in advance.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    In this case your images should have such original dimensions 1425px × 1900px.
    Sorry, but as now your images are small in sizes, they won’t be shown properly in lightbox for full width.

    Regards,
    Eva Kemp.

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register