How to change the black background color into white for Simple Image Gallery?
Moderators: pe7er, General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Intern
- Posts: 57
- Joined: Mon Aug 29, 2022 10:37 am
How to change the black background color into white for Simple Image Gallery?
Hello,
How can I change the background color of the images in Simple Image Gallery (by JoomlaWorks)?
See images at https://ontwikkel18.comp-it-aut.nl/?
See https://ontwikkel18.comp-it-aut.nl/comp ... 19f96ec8-2
Etc...
CSS code?
How can I change the background color of the images in Simple Image Gallery (by JoomlaWorks)?
See images at https://ontwikkel18.comp-it-aut.nl/?
See https://ontwikkel18.comp-it-aut.nl/comp ... 19f96ec8-2
Etc...
CSS code?
- pe7er
- Joomla! Master
- Posts: 25043
- Joined: Thu Aug 18, 2005 8:55 pm
- Location: Nijmegen, Netherlands
- Contact:
Re: How to change the black background color into white for Simple Image Gallery?
You can add the following CSS to create a red background to .png images that have a transparent background:
However, the first image I tried, was a .jpg with a white background.
You cannot change the background of those.
Or do you mean the page that you get after clicking an image?
That page has a hardcoded color in the body tag:
Maybe you could override that with a template override of the simple image plugin tmpl output
Code: Select all
.sppb-addon.sppb-addon-text-block.sppb-text-left {
background-color: red;
}
You cannot change the background of those.
Or do you mean the page that you get after clicking an image?
That page has a hardcoded color in the body tag:
Code: Select all
<body style="margin: 0px;height: 100%;background-color: rgb(14, 14, 14);">
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
-
- Joomla! Intern
- Posts: 57
- Joined: Mon Aug 29, 2022 10:37 am
Re: How to change the black background color into white for Simple Image Gallery?
I have used Element inspectation and I can change the background color in the jquery.fancybox.min.css like
.fancybox-slide {
-webkit-backface-visibility: hidden;
display: none;
height: 100%;
left: 0;
outline: none;
overflow: auto;
-webkit-overflow-scrolling: touch;
padding: 44px;
position: absolute;
text-align: center;
top: 0;
transition-property: transform,opacity;
white-space: normal;
width: 100%;
z-index: 99994;
background-color: white;
}
But where can I find the jquery.fancybox.min.css?
In which directory?
Please help...
.fancybox-slide {
-webkit-backface-visibility: hidden;
display: none;
height: 100%;
left: 0;
outline: none;
overflow: auto;
-webkit-overflow-scrolling: touch;
padding: 44px;
position: absolute;
text-align: center;
top: 0;
transition-property: transform,opacity;
white-space: normal;
width: 100%;
z-index: 99994;
background-color: white;
}
But where can I find the jquery.fancybox.min.css?
In which directory?
Please help...
-
- Joomla! Intern
- Posts: 57
- Joined: Mon Aug 29, 2022 10:37 am
Re: How to change the black background color into white for Simple Image Gallery?
Or do you mean the page that you get after clicking an image?
That page has a hardcoded color in the body tag:
<body style="margin: 0px;height: 100%;background-color: rgb(14, 14, 14);"
Maybe you could override that with a template override of the simple image plugin tmpl output
Where Can I add this CSS? I cannot find the simple image plugin css sources?
That page has a hardcoded color in the body tag:
<body style="margin: 0px;height: 100%;background-color: rgb(14, 14, 14);"
Maybe you could override that with a template override of the simple image plugin tmpl output
Where Can I add this CSS? I cannot find the simple image plugin css sources?
- Pavel-ww
- Joomla! Ace
- Posts: 1678
- Joined: Tue Jun 30, 2020 12:17 pm
Re: How to change the black background color into white for Simple Image Gallery?
Hi. /templates/shaper_helixultimate/css/> create custom.css.liekecomp2022 wrote: ↑Mon Dec 18, 2023 1:57 pmWhere Can I add this CSS? I cannot find the simple image plugin css sources?
... Reading the documentation of your template can be very useful and get rid of many questions
Helix template and Simple Image Gallery not JoomlaWorks but Joomshaper products.
Add this to custom.css
Code: Select all
.fancybox-bg {
background-color: red;
}
-
- Joomla! Intern
- Posts: 57
- Joined: Mon Aug 29, 2022 10:37 am
Re: How to change the black background color into white for Simple Image Gallery?
Thanks this works!
How can I make the transparent background completely white?
How can I make the transparent background completely white?
- Pavel-ww
- Joomla! Ace
- Posts: 1678
- Joined: Tue Jun 30, 2020 12:17 pm
Re: How to change the black background color into white for Simple Image Gallery?
Hi. Here isliekecomp2022 wrote: ↑Tue Dec 19, 2023 10:01 amHow can I make the transparent background completely white?
Code: Select all
.fancybox-bg {
background-color: white;
opacity: 1 !important;
}