• Resolved Mike Hindle

    (@mikehindle)


    Hi there. I’ve got the premium version of the plugin, but noticed a small issue.

    It’s working fine, until you click on one of the images and open the lightbox, then the images are all inverted.

    Is there a way that I can stop this from happening, please?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Shubham

    (@gptsbm)

    Hi @mikehindle,

    You can use this global CSS. It should fix the issue.

    body.darkmode--activated #glightbox-slider .gslide-image {
    filter: invert(1);
    }

    In “Appearance” > “Editor” > Click anywhere on the page. It will open the block editor view.

    Then, click on 3 dots beside “Styles” > “Additional CSS”, paste the above CSS code and click “Save”.

    You may also use “Additional CSS” field in the customizer instead.

    In the URL, your domain and then /wp-admin/customize.php?autofocus[section]=custom_css

    Thread Starter Mike Hindle

    (@mikehindle)

    Thanks for the speedy reply, Shubham.

    That has almost worked, other than the shadow of the lightbox, which is still inverted. Is there any way that you know of to un-invert that bit?

    Plugin Support Shubham

    (@gptsbm)

    In the previous CSS, you would add another line, so it would be:

    body.darkmode--activated #glightbox-slider .gslide-image {
    --glightbox-image-shadow: 1px 2px 9px 0px rgba(255, 255, 255, 0.65);
    filter: invert(1);
    }

    In the above value, you can adjust this value: rgba(255, 255, 255, 0.65)

    CSS with possible values:

    body.darkmode--activated #glightbox-slider .gslide-image {
    --glightbox-image-shadow: 1px 2px 9px 0px rgba(0, 0, 0, 0.25);
    filter: invert(1);
    }
    body.darkmode--activated #glightbox-slider .gslide-image {
    --glightbox-image-shadow: 1px 2px 9px 0px rgba(0, 0, 0, 0.40);
    filter: invert(1);
    }
    body.darkmode--activated #glightbox-slider .gslide-image {
    --glightbox-image-shadow: 1px 2px 9px 0px rgba(255, 255, 255, 0.35);
    filter: invert(1);
    }
    Thread Starter Mike Hindle

    (@mikehindle)

    Amazing! This is now working perfectly.

    Really appreciate your help on this one.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Stop Lightbox Images Inverting’ is closed to new replies.