XF 2.1 mode icon

Is there is a way to change node icon?
Yes.

Or is there any addons?
Also yes.

You did not ask how to do this but I'll give you some linkes anyway:
 
I define mine in the extra.less and it works very well. Here are a few from my file, as an example:

.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';}
 
Can I do the same with png files? If yes what will be the code. Thanks.
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;
        }
    }
}
 
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;
        }
    }
}


Just tried, seems is not working
 
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.
 
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.


Still now working

The code below:

/*** Node icons with image, by node id #. see /ads/nodes/filename.png 50x50 added by rhody/mike 3/2/20 **/
.node.node--id50 {
.node-icon i { display: none; }

&.node--forum {
.node-body {
/padding-left: 5px;/
}
.node-icon {
background-image: url('/styles/uix/badges/crown.png');
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
&.node--read .node-icon {
opacity: 0.4;
}
}
}
 
Back
Top Bottom