- Thread starter
- #1
Hola Hello, how can I add color to the name of a node or category?
Open your theme with extra.less and enter the ID of your XXX field category in the code below and add it to the template.How can I identify the Category I want to add the color to?
/* Coloured Node Categories */
.block.block--category.block--categoryXXX .block-header {
background: #009ACF;
color: #ffffff;
}
/**********/
CSS:
.block.block--category.block--category21 .block-header {
background: #7CA430;
color: #ffffff;
}
Open your theme with extra.less and enter the ID of your XXX field category in the code below and add it to the template.How can I identify the Category I want to add the color to?
/* Coloured Node Categories */
.block.block--category.block--categoryXXX .block-header {
background: #009ACF;
color: #ffffff;
}
/**********/
CSS:
.block.block--category.block--category21 .block-header {
background: #7CA430;
color: #ffffff;
}
Abra su tema con extra.less e ingrese el ID de su categoría de campo XXX en el código a continuación y agréguelo a la plantilla.
[CÓDIGO]/* Categorías de nodos coloreados */
.block.block--category.block--categoryXXX .block-header {
fondo: #009ACF;
color: #ffffff;
}
/**********/[/CÓDIGO]
Cambie X a su ID de nodo.
¿Cómo encuentro el ID de nodo?
Es sencillo encontrarlo. Simplemente desplace el cursor sobre el Título de la categoría de su nodo como en el ejemplo a continuación y verifique la ID:
[CÓDIGO]CSS:
.block.block--category.block--category21 .block-header {
fondo: #7CA430;
color: #ffffff;
}[/CÓDIGO]