XF 2.3 How to remove default icons in xf 2.3

Hristo Avramov

Active member
I used this code in extra.less to remove the default icons.
CSS:
.node--forum .node-icon i:before{display: none;}
Now in my local test this does not remove anymore the icons. Suggest me how to remove it again.

best regards
 
You may wish to reassess this. Consider more specificity.

You are essentially hiding ALL svg tags. This will hide any svg images.
How can I make it only for the icons?

How about like this? Am I hiding all svg tags or only the icons?
CSS:
.node-icon i{
    background-image: url(images/iconsprites.png);
    background-position: 0px 0px;
    height: 32px;
    line-height: 40px;
    width: 32px;
        svg {
        display: none;
    }
}
 
How can I make it only for the icons?

How about like this? Am I hiding all svg tags or only the icons?
CSS:
.node-icon i{
    background-image: url(images/iconsprites.png);
    background-position: 0px 0px;
    height: 32px;
    line-height: 40px;
    width: 32px;
        svg {
        display: none;
    }
}
This should be OK as you have nested the css Inside the node-icon. You may need to remove the i after the node-icon.
 
Back
Top Bottom