Couldn’t Change SVG Color
-
I used the
style-svg
method to fill my SVG using this:.style-svg {fill: red;}
in my child theme’s CSS. Some of the paths worked, so didn’t. I had to use the!important
tag, but knew there was a better way.I use Inkscape and the “Fill and Stroke” section HAS to be set for ‘Paint is undefined’, meaning if any part of your SVG has color, it won’t work. Just click on the question mark icon
?
and it changes the color to undefined so it inherits the color you set in CSS. Took me part of an afternoon to figure that one out.Hope this helps somebody else…
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Couldn’t Change SVG Color’ is closed to new replies.