Tagged: Lightbox
Hello,
I would like to set the background color of the image area in the lightbox to white, however in such a way that the top and bottom padding areas, containing the close button and the image title, remain black-transparent. I have PNG images with transparent background and would like to have them on white in the lightbox with all the rest areas of the lightbox remaining as before. Is it possible?
Thank you,
Marina
Hi Marina,
I think it’s possible if it’s on separate pages.
As for the global code for the modification you wanted, please try this CSS code in Enfold > General Styling > Quick CSS:
#top .mfp-zoom-in.mfp-bg {
background-color: white;
}
#top .mfp-content {
background-color: rgba(0,0,0,0.8);
padding: 0 40px;
}
Best regards,
Nikko
Hi Nikko,
Thank you for your code, but it also made the whole screen white. I managed with the following code:
.single-post .mfp-img {
background-clip: content-box !important;
background-color: white !important; }
You can close the ticket.
Best regards,
Marina