I am building some custom templates and in some elements I want to use icons. Bricks allows to select any icon from any icon collection but I want to use custom SVG code for the icon because I want to be able to migrate the template to another website without the need to upload all of the icons to that site too. If there could be embedded SVG code in the icon properties, the transfer of the template files would be very easy.
Like in the SVG element it is allowed to use SVG code. I want to have code option in any element’s icon property.
For example if I want to use the breadcrumbs element and I want to use svg as the separator icon. I cannot use a separate SVG element as the icon but I have to use the built-in icon parameter where I don’t have the option to insert SVG code just select an icon from a list.
adding icon libraries are very easy with this feature import export your libraries simple.
if you are asking copy pasting svg html codes per icon that is not proper way to handle svgs and not safe practice.
just import ones per site and forget about it.
bricks will not load all your library anyway bricks only loads the icons you used on the page on frontend so it works fine.
Thanks for the reply, I am experimenting with your theme, thanks
I understand the risks of inserting SVG codes but in the SVG element there is also a possibility to insert SVG code, which is also a security hole maybe?
I know if I import my SVGs in the library it is a good way but when I try to migrate one template to annother site then I have to import lots of SVGs before and relink them to the icons of the elements one by one, which would be a lot of work.
If I can just embed the icons via code in the templates then migrating would be very easy.