x

Gallery change Background Color when they pop up

I have to make a site for an artist and really really need to find a way to make a non-translusent white Background once  they pop up - how can i do that? i hope someone has a solution ... thank you

1,516 Views
Message 1 of 13
Report
12 REPLIES 12
Square

Is your site live, @hiri? It might be easier to figure this out by viewing the code on the live site.

1,495 Views
Message 14 of 13
Report

yes - here the link to a gallery-page
https://josef-test2.weebly.com/projects.html

1,486 Views
Message 14 of 13
Report
Square

This should do it for you on the live site if you add it to Settings > SEO > Header Code:

<style>
	.fancybox-overlay
	{
		background: #fff !important;
	}
</style>
1,478 Views
Message 14 of 13
Report

YESSSSS - THANK YOU- this works
this is great! WOW
and is there also a way to move the navigation-signs to the side of the page? or at least make the arrows and the X grey?

1,469 Views
Message 14 of 13
Report
Square

Try this code instead:

<style>
	.fancybox-overlay
	{
		background: #fff !important;
	}
	.fancybox-next
	{
		right: -56px !important;
	}
	.fancybox-prev
	{
		left: -56px !important;
	}
	.fancybox-nav
	{
		width: 50% !important;
	}
</style>

This will move the arrows off of the drop shadow so they don't look funny on top of it.

1,444 Views
Message 14 of 13
Report

thanx Adam, 

the BG gets white, the rest is unfortunately not working - i know that with developpe-rtools it has that effect (my small coding-experience let me figure that out ..) - but on the site it is not working

I also tried to make the captions white, writing black and added (without success)

.fancybox-title
{ color: #000000 !important; }
.fancybox-title { background: #ffffff !important; }

why oh why is that so?

1,434 Views
Message 14 of 13
Report
Square

It looks like it's being overriden by later CSS code. Try moving the code to Settings > SEO > Footer Code.

1,432 Views
Message 14 of 13
Report

yes it worked!!!!! but i had to put <style></style> in between each element (and uploaded other navigation-arrows) - i also changed the captions and got rid of the shadow-box (i am sure there is a more "elegant way" to do that - and that there is a way to leave the shadows and set the captions-background to transparent - i am not that code-savvy, will still look into that - unless you got a quick answer?)

in the header i left: <style> .fancybox-overlay { background: #fff !important; } </style>
and as you told me: in the footer I put:
<style> .fancybox-opened .fancybox-skin { box-shadow: 0 0px 0px rgba(255, 255, 255, 0.5); } </style>
 <style> .fancybox-next { right: -56px !important } </style>
 <style> .fancybox-prev { left: -56px !important; } </style>
<style> .fancybox-close { right: -56px !important; } </style>

<style> .fancybox-nav { width: 50% !important; } </style>
<style> .fancybox-title { text-align: center !important; } </style>
 <style> .fancybox-title { color: #878787 !important; } </style>
<style> .fancybox-title { background: #ffffff !important; } </style>

1,413 Views
Message 14 of 13
Report
Square

This is probably the quickest way to do it and will also probably keep working if you change themes, so I probably wouldn't do it a different way if it was me.

1,400 Views
Message 14 of 13
Report

thanx Adam for the compliment - now that i started i will try to tweak some more - maybe you got any hint on how i can get the navigation-arrows to remain always on the side of the page (when the images are popped up of course) ?

634 Views
Message 14 of 13
Report
Square

That would be a little trickier since they're currently positioned absolutely based on the dimensions of the container element of the image. Without editing the HTML itself it might be a bit tricky, and that could also break some of the javascript functionality of the lightbox.

632 Views
Message 14 of 13
Report

oh - ok - i guess i won't try it then .... thanx once again
oh - one last question: any idea how to set a backgroundcolor on transparent? i tried with opacity to 0 but this ain't working

625 Views
Message 14 of 13
Report