By Sam Famma on Saturday, 31 May 2014
Likes 0
Views 1.2K
Votes 0
Hi there! I am struggling make the photo lightbox transparent. The original background colour is transparent but its not showing it as a solid light colour. I added a photoshop design to show what i want.
Hello Sam,

I don't think that is quite possible right now unless you extensively modify the css to support this. You might also need to add some additional html elements to the photo popup so that the opacity could kick in
·
Saturday, 31 May 2014 13:39
·
0 Likes
·
0 Votes
·
0 Comments
·
ok thank you
·
Saturday, 31 May 2014 13:41
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem
·
Saturday, 31 May 2014 13:58
·
0 Likes
·
0 Votes
·
0 Comments
·
I did some testing and was able to make a transparent background with only 3 selectors. Right now it's extremely late, so I gotta get some rest. Maybe tomorrow I can share how to do this. Do you want only the photo to display without the comments and such? Or do you just want a transparent background?

Here's proof:
·
Sunday, 01 June 2014 18:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Nice, perhaps you should post your tweaks here Josh? I'll move this to the tricks section.
·
Monday, 02 June 2014 00:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh ! well just the photo background to be displayed as transparent
·
Monday, 02 June 2014 14:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Okay, here is the code to make the popbox transparent:

body div#fd.es.es-photo-popup .es-popup-viewport {background: rgba(0, 0, 0, 0.3) !important;}


Place it in one of your template files, clear your browser cache after applying this. Turns out only a single selector was needed which is great for tweaking. No extensive code, no HTML over rides needed, and it was pretty easy to generate the code. Typing this message took about as long as it did to create and test the code above.

BTW, you can adjust the opacity by changing the value 0.3 near the end to what you want it to be.
·
Monday, 02 June 2014 15:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Nice Josh!
·
Monday, 02 June 2014 23:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Also, If you'd like to make it more like SIG Pro's lightbox, or facebook`s lightbox, try:

body div#fd.es.es-photo-popup {background: rgba(0, 0, 0, 0.8) !important;}
body div#fd.es.es-photo-popup .es-popup-viewport {background: rgba(0, 0, 0, 1) !important;}


I find Chrome`s inspector works best when trying to add new styles to test.

·
Monday, 02 June 2014 23:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Very nice, thanks for sharing Justin!
·
Tuesday, 03 June 2014 03:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Your very welcome Mark ... can't wait for ES 1.3!!!
·
Tuesday, 03 June 2014 03:26
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post