主题组件中使用新 Fontawesome 6 图标遇到问题

来自 We're upgrading our icons to Font Awesome 6! - #26 的分割:

谢谢告知。但我指的是具体名称:

我一直在使用主题组件,它们仍然使用 FA5 名称。我尝试使用 FA6 名称,但不起作用。

例如,cocktail 是一个 FA5 图标名称。当我尝试使用 FA6 名称 martini-glass-citrus 时,它不起作用。

FA5 中的 Cocktail:

FA6 中的 Martini Glass Citrus:

如果需要,请随时将此内容分割到单独的主题中。

2 个赞

我刚刚使用 martini-glass-citruscocktail 让它工作了。

这是我在 Category Icons Theme Component 中的设置

2 个赞

martini-glass-citrus 对我来说是一个很好的标签图标


3 个赞

@Lilly @Moin 感谢告知——我会试试的。也许我忘了在底部字段也添加 martini-glass-citrus

2 个赞

你不应该这样做——看看我的设置截图。 闭嘴莉莉,听摩因的。看我下面的评论 :innocent:

3 个赞

那对我来说行不通


3 个赞

现在这很有趣。我想知道为什么?:face_with_monocle: :upside_down_face:

编辑:因为它本该如此……

我本来想终于去睡觉了,但现在我第一次安装了 tag-icons :laughing:

编辑:我在 Tag Icons 主题组件中成功了

是的,你确实需要在底部的 svg-icon 设置中放入图标名称 - @Moin 说得对。在我之前的帖子中,那里有 cocktail 意味着它会自动映射到 martini-glass-citrus

5 个赞

好的,当我将 martini-glass-citrus 添加到 bottom 设置时,它对我来说奏效了。非常感谢你们两位!

4 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.