首先需要你的 WordPress 主题能够支持 FontAwesome 才可以运作,代码如下:
/*
您可以在此加入您的 CSS 。
*/
#bbpress-forums #favorite-toggle a:before {
content:"\f08a";
margin-right:6px
}
#bbpress-forums #favorite-toggle .is-favorite a:before {
content:"\f004"
}
#bbpress-forums .subscription-toggle:before {
content:"\f09e";
margin-right:6px
}
#bbpress-forums .is-subscribed .subscription-toggle:before {
content:"\f00d"
}
.bbp-body a.bbp-forum-title:before,.bbp-body a.bbp-topic-permalink:before {
position:absolute;
left:0;
top:0px;
display:inline-block;
width:25px;
font-family:"FontAwesome";
content:"\f086"
}
.bbp-body .no-replies a.bbp-forum-title:before {
content:"\f0e5"
}
.bbp-body .status-closed a.bbp-topic-permalink:before {
content:"\f023"
}
.bbp-body a.bbp-forum-title,.bbp-body a.bbp-topic-permalink {
position:relative;
padding-left:25px
}
.bbp-body a.bbp-forum-title:before,.bbp-body a.bbp-topic-permalink:before,#bbpress-forums #bbp-single-user-details #bbp-user-navigation a:after,#bbpress-forums .subscription-toggle:before,#bbpress-forums #favorite-toggle a:before {
font-family:"FontAwesome";
font-weight:normal;
font-style:normal;
letter-spacing:normal;
text-rendering:auto;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale
}上面的代码是 CSS 代码,添加到你主题自定义的 css 里面保存就有。