inherit
118283
0
Oct 24, 2020 6:55:22 GMT -8
Ishy
470
February 2008
april7291
|
Post by Ishy on Feb 26, 2018 10:56:08 GMT -8
I was just wondering if there was a way to use the icons from fontawesome and have a different one for each board. They only work in the Template Layout, I've tried to add a different one to the board description in the Categories & Boards page but it doesn't work. Site
|
|
inherit
246669
0
Jan 2, 2023 13:25:26 GMT -8
Philip
97
July 2017
phil82
|
Post by Philip on Feb 26, 2018 13:31:49 GMT -8
If you change the board list html slightly, as follows: <td class="board__icon">
<i class='fa fas board__icon--$[board.content_id]' ></i>
</td> Then add the following to your stylesheet, some additional style rules may need to be applied but this should get them showing at the very least. @font__family--icon : 'FontAwesome';
.board__icon{
i{
font-style: normal;
font-family: @font__family--icon;
font-size: 1.25em;
}
/** &--board-#:before **/
&--board-1:before{ content: "\f13d"; }
&--board-2:before{ content: "\f13d"; }
&--board-3:before{ content: "\f13d"; }
} Replace &--board-#:before with your board id example: &--board-21:before and change its content to display the icon you want, examples of icons can be found on their site font awesome icons just look for the unicode examples by clicking on an icon and place those into the content, prefixed with a backslash \
|
|
inherit
118283
0
Oct 24, 2020 6:55:22 GMT -8
Ishy
470
February 2008
april7291
|
Post by Ishy on Feb 26, 2018 14:44:50 GMT -8
Oh wow, thank you so much! I never would have been able to figure that out.
|
|
inherit
246669
0
Jan 2, 2023 13:25:26 GMT -8
Philip
97
July 2017
phil82
|
Post by Philip on Feb 26, 2018 15:51:41 GMT -8
no problem, good luck with your forum.
|
|