[cXF] Coloured Node Icons

XF 2.2 / 2.3 [cXF] Coloured Node Icons

Add-on xenforo 2

Ressources et modules complémentaires pour XenForo 2

Styles xenforo 2

Styles / Thèmes et apparence pour xenforo 2

Templates xenforo 2

Codes pour modifier les templates sur xenforo 2

Section Premium

Add-on et Styles pour membre Premium
[cXF] Coloured Node Icons

XF 2.2 / 2.3 [cXF] Coloured Node Icons

Catégorie Catégorie Modifications Templates
Titre du sujet Titre du sujet [cXF] Coloured Node Icons
Auteur de la discussion Auteur de la discussion laurent68
Date de début Date de début
Réponses Réponses 3
Affichages Affichages 315
Réaction Réaction 2
Dernier message par Dernier message par tubirama

laurent68

Fondateur

Staff
fondateur
Réputation: 100%
Discussions
4 839
Messages
12 546
Solutions
84
J'aime
7 848
Points
198
How to change node icon colour to something like that ?

1520849824989.png


This is a DIY step-by-step tutorial.

Before changing the code let's get prepared:
  1. To change the category block header see this guide.
  2. Be sure what type is your node you wish to change the icon for (Category, Forum, Link forum or Page).
  3. If you don't know how to check node ID, please check this resource.
Change Forum node type icon

For Forum node type icon (read and unread) add this code to your extra.less template :



Change X to your node ID.

Result for read and unread icon :

1520850436726.png
111111.png


To change also the subforum node type icon edit the above code to this :


Result for subforum icon :

cni-subforum.png


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:
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:

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:
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:

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:
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:

These are the basic steps. There, of course, may be specifics.
 
br par curiosité merci
 
Contenu similaire Les plus vues Voir plus
Retour
Haut Bas