能否在用户标题旁显示 Font Awesome 类图标?

As per title really, can I somehow display a badge icon in / alongside a Title, like the Shield icon here?

When we create new badges we use the Font Awesome class to generate the icon, eg:

The icon then shows up here on the badge:

Is it possible for us to get these font awesome icons to appear next to the Title too?

4 个赞

我原本把这条帖子发在了 Support,但后来把它移到了 Contribute > Feature,因为这个功能还不存在。

大家觉得这个作为新功能提议怎么样?

还是说只有我会用这个功能呢? :thinking:

This could likely also be done with a theme component.

1 个赞

你好,

如果在用户标题上添加 Font Awesome 图标是不可能的,那么 Discourse 是如何实现的呢?

2 个赞

可以通过 CSS 调整用户组的显示效果。请参阅 Make staff users more recognizable with customized avatars, posts, and mentions

我不确定是否可以使用 Font Awesome 图标,但你可以尝试使用 CSS 的 ::after content 功能。::after - CSS | MDN

1 个赞