Modify Lightbox height/padding?

Home Forums Gillion Theme Modify Lightbox height/padding?

Home Forums Gillion Theme Modify Lightbox height/padding?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    RESOLVED Posts
  • mkemrtn
    Participant

    Is it possible insert custom css to make the images larger when view in Lightbox? Currently an image will only take up about 80% of the screen height when in lightbox, can this be changed so that the image is bigger/taller to take up 95% of the window height? Thanks!

     

    https://maplelawnhomes.com/january-2018/

    Shufflehound
    Moderator

    Hi there,

     

    Thank you for question.

     

    It isn’t possible with CSS as JS calculates lightbox element sizes.

    However it could be possible to edit JS file by changing maxWidth and maxHeight variables in js/scripts.js:633 file.

     

    Best regards,

    Shufflehound team

    mkemrtn
    Participant

    Thank you for the specific answer.

     

    I’ve tried modifying those variables but it produced no changes. Also purged cache/cookies to confirm that wasn’t the issue. I also tested modifying a couple variables in lightcase.js to no effect.

     

    Any other ideas?

    Shufflehound
    Moderator

    We just tested it and looks like it is now much larger, maybe even too large.

    It is possible that browser cache wasn’t fully cleared.

    mkemrtn
    Participant

    In chrome, it still hasn’t changed for me. I’ve attached a screenshot to make sure we are talking about the same thing. It is the middle box that shows the media that I would like to be larger.

     

    I did modify the arrows to be very large and would like them that way.

    Attachments:
    You must be logged in to view attached files.

    Shufflehound
    Moderator

    Please see our attached screenshot bellow.

    That’s how we see it now, but we are not sure how can this image be so large.

    Attachments:
    You must be logged in to view attached files.

    mkemrtn
    Participant

    Solution for this topic

    Very bizarre.

     

    You were originally correct. Modifying those lines to   maxWidth: 1750,   produced the current full-page image look visible on the site. My browser/server cache must have been messing up which is why I didn’t see the changes earlier. One might say, there was not enough change in the cache.

     

    Thanks for all your help!

     

    If someone else finds this thread helpful feel free to use the custom css below to get the same icon look on my website.

     

    a[class*=’lightcase-icon-‘] {
    position: fixed;
    z-index: 9999;
    width: 1.123em;
    height: auto;
    font-size: 78px;
    line-height: 1;
    text-align: center;
    text-shadow: none;
    outline: none;
    cursor: pointer;
    }

     

    Shufflehound
    Moderator

    Thank you for posting it here.

    We will put your answer as solution for this topic. 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form