Adjust the fill color of my own .svg files

I would like to import my own .svg files into Blocs and adjust the fill color in Blocs. I tried to change the color of the .svg file with a class, but unfortunately this didn’t work (see screenshot). Any idea how I can solve this?

Look forward to your reply and wish a good start to the week

Try using the Inline SVG bloc, then you can style it in the Blocs app.

Thanks @Ghost, completely forgot to report my result. In another task I was given the same tip. Here is the link for the full description and discussion:

I would still be interested in how to change the svg file with the class. That’s what the option in the class is for, isn’t it?

Hi @Speedy-Alex, just add the code into a code widget and apply a class in the class manager.

I understand. I still use the Inline SVG Bric and create a class for it. Inserting the svg file into the image bric and giving it a class does not work.

No, you don’t use the inline SVG Bric. Instead you use the code widget and add the SVG code into this.

2 Likes

Great :smiley: