能否在用户标题旁显示 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:

image

The icon then shows up here on the badge:

image

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

4 个赞

I posted this in support but I’ve just moved it over to feature as it doesn’t exist yet.

Any thoughts on this as a new feature request?

Or would I be the only one who’d use this? :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 个赞