Malcolm-89 Posted March 15, 2021 Share Posted March 15, 2021 Site URL: https://www.malcolmdavis.net/ Hi, I am trying to figure out how to change the transparent background in the lightbox to be a solid color without any transparency. I don't know anything about coding, so if someone can tell me the specific steps to accomplish this that would be much appreciated. I was already told by customer service that the only way to change the transparency was by editing the coding. Many thanks, Malcolm Link to comment
tuanphan Posted March 23, 2021 Share Posted March 23, 2021 On 3/15/2021 at 11:47 AM, Malcolm-89 said: Site URL: https://www.malcolmdavis.net/ Hi, I am trying to figure out how to change the transparent background in the lightbox to be a solid color without any transparency. I don't know anything about coding, so if someone can tell me the specific steps to accomplish this that would be much appreciated. I was already told by customer service that the only way to change the transparency was by editing the coding. Many thanks, Malcolm Hi. Add to Design > Custom CSS /* Lightbox opacity */ .gallery-lightbox-background { opacity: 0.5; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Malcolm-89 Posted March 23, 2021 Author Share Posted March 23, 2021 Hi, Thanks for answering the question. I pasted the fallowing code into the Custom CSS and then pressed save. When I refreshed the website there was not any change in the opacity of the background. Was there something I missed? /* Lightbox opacity */ .gallery-lightbox-background { opacity: 0.5; } Link to comment
tuanphan Posted March 25, 2021 Share Posted March 25, 2021 On 3/24/2021 at 2:34 AM, Malcolm-89 said: Hi, Thanks for answering the question. I pasted the fallowing code into the Custom CSS and then pressed save. When I refreshed the website there was not any change in the opacity of the background. Was there something I missed? /* Lightbox opacity */ .gallery-lightbox-background { opacity: 0.5; } It is code for lightbox background, not page background. Have you tried checking lightbox background yet? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Malcolm-89 Posted March 25, 2021 Author Share Posted March 25, 2021 Hi, yes that is what I meant. the lightbox background behind the picture being viewed did not change. I am pasting a picture of it here. As you can see the thumbnail pictures are still visible in the background. I want a solid background so the thumnails are not visible in the background. Thanks again Link to comment
ClaraB Posted March 25, 2021 Share Posted March 25, 2021 In that case, you can adjust the code in the other direction! /* Lightbox opacity */ .gallery-lightbox-background { opacity: 1.0; } Hope that helps! Link to comment
Malcolm-89 Posted March 30, 2021 Author Share Posted March 30, 2021 (edited) Thanks ClaraB, I pasted in the new custom code and pressed save. It did not make any change to the transparency in the lightbox of the project folders. I do see that the lightbox in the portfolio is non transparent. How can I make this change for the Lightbox in the projects folders? Edited March 31, 2021 by Malcolm-89 Link to comment
Solution tuanphan Posted April 5, 2021 Solution Share Posted April 5, 2021 On 3/31/2021 at 4:04 AM, Malcolm-89 said: Thanks ClaraB, I pasted in the new custom code and pressed save. It did not make any change to the transparency in the lightbox of the project folders. I do see that the lightbox in the portfolio is non transparent. How can I make this change for the Lightbox in the projects folders? Add to Design > Custom CSS .gallery-lightbox-background { opacity: 0.5; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
ChristinaSharp Posted January 23, 2023 Share Posted January 23, 2023 Thanks! This code worked for me! To help anyone out in the future, if you want to adjust the opacity you adjust the number in the code: 1.0 = 100% opacity (no transparency) .5 = 50% opacity .25 = 25% opacity .0 = completely translucent Hope that helps! tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment