- Discussions
- 4 839
- Messages
- 12 546
- Solutions
- 84
- J'aime
- 7 848
- Points
- 198
How to change node icon colour to something like that ?
This is a DIY step-by-step tutorial.
Before changing the code let's get prepared:
For Forum node type icon (read and unread) add this code to your extra.less template :
Change
Result for read and unread icon :
To change also the subforum node type icon edit the above code to this :
Result for subforum icon :
Change Category node type icon
Change Link forum node type icon
Change Page node type icon
These are the basic steps. There, of course, may be specifics.
This is a DIY step-by-step tutorial.
Before changing the code let's get prepared:
- To change the category block header see this guide.
- Be sure what type is your node you wish to change the icon for (Category, Forum, Link forum or Page).
- If you don't know how to check node ID, please check this resource.
For Forum node type icon (read and unread) add this code to your extra.less template :
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Change
X to your node ID.Result for read and unread icon :
To change also the subforum node type icon edit the above code to this :
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Result for subforum icon :
Change Category node type icon
Look steps above and edit the code to suit your needs. You can simply add this
.node--category.node--read .node-icon i for read icon to above code or check the code below for better understanding:
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Look steps above and edit the code to suit your needs. You can simply add this .node--category.node--read .node-icon i:before for read icon to above code or check the code below for better understanding:
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Change Link forum node type icon
Look steps above and edit the code to suit your needs. You can simply add this .node--link
.node-icon i for read icon to above code or check the code below for better understanding:
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Look steps above and edit the code to suit your needs. You can simply add this .node--link .node-icon i:before for read icon to above code or check the code below for better understanding:
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Change Page node type icon
Look steps above and edit the code to suit your needs. You can simply add this
.node--page .node-icon i for read icon to above code or check the code below for better understanding:
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Look steps above and edit the code to suit your needs. You can simply add this .node--page .node-icon i:before for read icon to above code or check the code below for better understanding:
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
These are the basic steps. There, of course, may be specifics.
