Jump to content

how to change transparency in the lightbox background?

Go to solution Solved by tuanphan,

Recommended Posts

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

 

image.thumb.png.b16d0a4b38d7092cc362def8a4ed5e2b.png

Link to comment
  • 2 weeks later...
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

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;
}

 

image.thumb.png.fec725f9d28d2a8f5ab45a28442294a8.png

image.thumb.png.2f60c37a3cb5d873435dadbed39144c0.png

Link to comment
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;
}

 

image.thumb.png.fec725f9d28d2a8f5ab45a28442294a8.png

image.thumb.png.2f60c37a3cb5d873435dadbed39144c0.png

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

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

image.thumb.png.831b8213e69a781cd40a8d94d22043c1.png

Link to comment

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?

 

 

image.thumb.png.3d86c150caa61f1547e1fa6289abdb3d.png

Edited by Malcolm-89
Link to comment
  • Solution
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?

 

 

image.thumb.png.3d86c150caa61f1547e1fa6289abdb3d.png

Add to Design > Custom CSS

.gallery-lightbox-background {
    opacity: 0.5;
}

image.thumb.png.74eca8109ad49bb3ecfe3a533f5a4f6f.png

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
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.