You can use [fa]icon name[/fa] inside of text to display FontAwesome icons with BBCode. Anyone know how to do the same with Phosphor?
- follow the vanilla css instructions and add the link tags to the page
[fa]nqu ph ph-smiley[/fa]
[fa]nqu ph-fill ph-heart[/fa]
[fa]nqu ph ph-cube[/fa]
of course
- this is a hack that uses bubble internal bbcode handling, it can break at any time if they change it
- you still have the
faclass applied to the element and can have conflicting styles - you load all icons
- you make sure there isn’t any
fa-nquclass defined in the page
2 Likes
Adding this script from GitHub - phosphor-icons/homepage: The homepage of Phosphor Icons, a flexible icon family for everyone for any passerbys:
<!doctype html>
<html>
<head>
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/regular/style.css"
/>
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/fill/style.css"
/>
</head>
<body>
<i class="ph ph-smiley"></i>
<i class="ph-fill ph-heart" style="color: hotpink"></i>
<i class="ph ph-cube"></i>
</body>
</html>
2 Likes
I have developed a plugin specifically for these needs - free of charge:
Dynamic Icons Renderer - [Demo] Plugin page: Dynamic Icons Renderer(Free Bundle) Plugin | Bubble
It has Material Symbols(and Icons), Phosphor Icons, Lucide Icons:
