.node--forum .node-icon i::before, .node--category .node-icon i::before {
content: "\f085";
}
Can you change the color too?The node icons are font awesome. You can add this code to the extra.less template:
Code:.node--forum .node-icon i::before, .node--category .node-icon i::before { content: "\f085"; }
Replace the "\f085" unicode with one of these icons:
http://fontawesome.io/icons/
Can you change the color too?
Add color as shown below :do you know how?
content: "\f085";
color: red;
The node icons are font awesome. You can add this code to the extra.less template:
Code:.node--forum .node-icon i::before, .node--category .node-icon i::before { content: "\f085"; }
Replace the "\f085" unicode with one of these icons:
http://fontawesome.io/icons/
.node--forum .node-icon i::before, .node--category14 .node-icon i::before {
content: "\f085";
}
Sorry, I'm not sure if I understand the question.
Thank you for the code, unfortunately it applies to all categories of the forum.
I wish I could customize each category with a different icon
So I tried this code
but it did not work :
CSS:.node--forum .node-icon i::before, .node--category14 .node-icon i::before { content: "\f085"; }
A solution ?
You can inspect the node icon in your browser and get the node id, then use the following code...Thank you for the code, unfortunately it applies to all categories of the forum.
I wish I could customize each category with a different icon
So I tried this code
but it did not work :
CSS:.node--forum .node-icon i::before, .node--category14 .node-icon i::before { content: "\f085"; }
.node--id132 .node-icon i::before {
content: "\f085" !important;
}
Thanks!.. what would work for the subnodelink s that show the smaller icons?The node icons are font awesome. You can add this code to the extra.less template:
Code:.node--forum .node-icon i::before, .node--category .node-icon i::before { content: "\f085"; }
Replace the "\f085" unicode with one of these icons:
http://fontawesome.io/icons/
Thanks, never saw that one...You can also use this small addon: https://xenforo.com/community/resources/node-icon.6285/
.node--id60.node--unread .node-icon i::before {
font-size: 34px;
content: "\f01b";
padding: 4px;
color: #4f80b4;
}
.node--id60.node--read .node-icon i::before {
font-size: 34px;
content: "\f01b";
padding: 4px;
}
content: "\f01b" !important;
I am trying to assign font awesome node icons individually per node.
Code:.node--id60.node--unread .node-icon i::before { font-size: 34px; content: "\f01b"; padding: 4px; color: #4f80b4; } .node--id60.node--read .node-icon i::before { font-size: 34px; content: "\f01b"; padding: 4px; }
I also tried adding !important, as I read that somewhere.
Code:content: "\f01b" !important;
Something is wrong though, I am getting a replacement of the screenshot below which is not my desired FA, and any unicode I use produces the same thing.
View attachment 191216
And this one :I am trying to assign font awesome node icons individually per node.
Code:.node--id60.node--unread .node-icon i::before { font-size: 34px; content: "\f01b"; padding: 4px; color: #4f80b4; } .node--id60.node--read .node-icon i::before { font-size: 34px; content: "\f01b"; padding: 4px; }
I also tried adding !important, as I read that somewhere.
Code:content: "\f01b" !important;
Something is wrong though, I am getting a replacement of the screenshot below which is not my desired FA, and any unicode I use produces the same thing.
View attachment 191216
.node--id60.node--unread .node-icon i::before {
font-size: 34px;
font-family: "FontAwesome";
content: "\f01b";
padding: 4px;
color: #4f80b4;
}
.node--id60.node--read .node-icon i::before {
font-size: 34px;
font-family: "FontAwesome";
content: "\f01b";
padding: 4px;
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.