Yes.Is there is a way to change node icon?
Also yes.Or is there any addons?
.node.node--forum.node--id5 i:before{content:'\f0f1';}
.node.node--forum.node--id6 i:before{content:'\f559';}
.node.node--forum.node--id7 i:before{content:'\f08d';}
.node.node--forum.node--id9 i:before{content:'\f65c';}
.node.node--forum.node--id10 i:before{content:'\f218';}
.node.node--forum.node--id12 i:before{content:'\f6a3';}
.node.node--forum.node--id25 i:before{content:'\f8c4';}
I define mine in the extra.less and it works very well. Here are a few from my file, as an example:
I used the above links to learn how to do it. Here is an example of the code for extra.less for an external image of your own:Can I do the same with png files? If yes what will be the code. Thanks.
/*** Node icons with image, by node id #. see /ads/nodes/filename.png 50x50 added by rhody/mike 3/2/20 **/
.node.node--id41 {
.node-icon i { display: none; }
&.node--forum {
.node-body {
/*padding-left: 5px;*/
}
.node-icon {
background-image: url('/ads/nodes/41.png');
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
&.node--read .node-icon {
opacity: 0.4;
}
}
}
I used the above links to learn how to do it. Here is an example of the code for extra.less for an external image of your own:
Code:/*** Node icons with image, by node id #. see /ads/nodes/filename.png 50x50 added by rhody/mike 3/2/20 **/ .node.node--id41 { .node-icon i { display: none; } &.node--forum { .node-body { /*padding-left: 5px;*/ } .node-icon { background-image: url('/ads/nodes/41.png'); background-repeat: no-repeat; background-position: center; background-size: contain; } &.node--read .node-icon { opacity: 0.4; } } }
Well be sure to replace the node id # in the code with yours (each forum is assigned a unique ID #, 41 was in the above example), and i named the PNG file with the same node id # also, to be organized. You don't have to do that.
I know it works find on main menu forums/nodes, I'm not sure if it works on subforums of others. Is it a uk photography forum?
\f559I define mine in the extra.less and it works very well. Here are a few from my file, as an example:
We use essential cookies to make this site work, and optional cookies to enhance your experience.