XF 2.2 Change Only Forum Node Icons

frm

Well-known member
Licensed customer
I'd like to change only the forum type node icons and leave questions, suggestions, articles..., the same.

Is this possible?
 
Solution
You can do it like this:
Less:
.node--id11, .node--id12, .node--id13 {
    &.node--forum.node--read .node-icon i:before {
        /*properties*/
    }
}

Just add .node--idX after a comma where X is your node ID. I think this should be quick enough.
There is no extra class for questions, suggestions... nodes. You can add the specific node ID in front of .node--forum with the help of this resource:

So, something like this should work for read nodes:
node--idX.node--forum.node--read .node-icon i:before

*the X is your node ID.
 
*the X is your node ID.
There are way too many nodes to do this so I wanted to just change the forum nodes, but the way I am doing it (.node-icon i:before) is changing all of them besides the new search nodes.

1610887930678.webp

If search nodes don't change... why do questions/suggestions/articles?
 
There are way too many nodes to do this so I wanted to just change the forum nodes, but the way I am doing it (.node-icon i:before) is changing all of them besides the new search nodes.
Understand, but I don't see another way.

If search nodes don't change... why do questions/suggestions/articles?
Search node has it's own class node--search.
 
  • Like
Reactions: frm
Understand, but I don't see another way.


Search node has it's own class node--search.
Makes sense then.

I just reverted back to the classic bubbles, for now, temporarily solving the problem. That's a lot of code to add for all those nodes... Unless you can make an array of some sort? id1,id2,id3,id4,...?
 
You can do it like this:
Less:
.node--id11, .node--id12, .node--id13 {
    &.node--forum.node--read .node-icon i:before {
        /*properties*/
    }
}

Just add .node--idX after a comma where X is your node ID. I think this should be quick enough.
 
Solution
Back
Top Bottom