-
Stefanie
Hi there,
I have created a container. I want it to have 3 styles for the background:
1. background color
2. repeating svg pattern
3. overlying gradient.Step 2 and 3 are not a problem, but step 1 is:
The background color of the container, which I have set via the GB settings, is not accepted.
Only if I write the background color via custom css, then it is accepted. see screenshotWhat am I doing wrong?
Thank you!
-
Hi there,
Yes, it’s weird. Can you remove the background color, publish the change, then add the background color again to see if that clears it.
Let me know ๐
-
Hi there,
Yes, it’s weird. Can you remove the background color, publish the change, then add the background color again to see if that clears it.
Let me know ๐
-
Stefanie
Hi Ying,
Thanks for your response.
Can you remove the background color, publish the change …
I did that, but without success.
What is weird is that the bg-color is displayed in the editor, but when I switch to the frontend, it is gone.
Edit: it has to do with the gradient. As soon as I delete the gradient, it works. But this is not an option…
-
Alvind
This is what I see on the page without the gradient: https://cln.sh/R3BmKTrH.
Is that the correct background color?
-
Stefanie
Yes, that’s exactly how it should look!
Your screenshot shows the background with the gradient.But as I said, it only works because I have entered the background color via the customizer css.
I have already described this above.It does not work if I enter the background color via the GB settings.
-
The gradient is using
backgroud
property, instead ofbackground-image
property, which will overridebackground-color
if it comes later in the CSS.It’s weird, as when I test, the CSS is using
background-image
for gradient, which version of GB and GB Pro are you using? -
Stefanie
which version of GB and GB Pro are you using?
2.1
-
Can you provide an admin login so I can copy your block to my site to test?
-
Alvind
Since you’ve set multiple background properties, instead of adding the background color directly under the Background Color settings, add it in the same way you add the linear gradient and image, like this: https://cln.sh/bN31NQ34
-
Stefanie
… add it in the same way you add the linear gradient and image
Thanks, it works now ๐๐
-
Alvind
Glad to hear that!
- You must be logged in to reply to this topic.