-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background-image SVGs not working #7
Comments
Hey David, Thanks for posting. I did some testing and it looks like there might be an issue with your CSS. I tried this in the CSS for a row and it worked as expected...
It looks like your opening and closing brackets are encoded to Justin |
Thanks Justin, Oh no, stupid me! I see that now. SVGs are not exactly my strength. The issue remains when I putting your code in a row on a site with only Beaver Builder on it. It show fine when in the editor (see link): https://cloud.wpcornershop.com/jkuDGdmz But it's gone when published: https://lite.beaverjunction.com/services/ (green section top). |
Thanks for the examples. This one has me scratching my head. It's working fine on my site, even published. I dug around in the inspector in your example and when changing I can confirm in the inspector that the CSS is being rendered correctly by the plugin. |
UPDATE: Sorry, the information seems wrong below SVGs in the other BB areas only seem to work when in the editor view not when published.
You can use SVGs as a background-image URL in BB's Layout/Global CSS but it seems not to work in the BB code settings areas.
The bottom of his page shows an example:
https://designs.beaverjunction.com/fancy-headings/
This is the code use:
.test .fl-module-content {
background-color: #11aa44;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230099ff' fill-opacity='1' d='M0,32L48,53.3C96,75,192,117,288,165.3C384,213,480,267,576,272C672,277,768,235,864,192C960,149,1056,107,1152,90.7C1248,75,1344,85,1392,90.7L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
}
Thank you :-)
The text was updated successfully, but these errors were encountered: