how can I add a class to a new asset?<?= (new Asset("assets/images/TOW3.svg"))->content() ?>
Since you are reading the file contents, you can’t.
- add the class to svg
- wrap the code above in a container with a class attribute
How can I apply a class to the svg?
It’s just a text file, you can open it with any text editor.
Ahh yes I understand. Thank you