XF 2.1 Child Forum title colour

Ben44

Active member
I have 4 child forums in my Food and Drink and have now added 'Christmas Recipes' as that is on it's way.
I would love to change the colour of the Christmas Recipes forum to red, is there a way of doing it please?

food.webp
 
Solution
This will work, but only because the Christmas node is the last one.

Add this to the extra.less template:

Code:
.node--id2 .node-subNodeFlatList > li:last-child a
{
    color: red;
}

Change the 2 for the ID to the parent node ID.

1602270401506.png
Which part of the forum?

Do you mean the node title on the index page?

If so:
Code:
.node--id3 .node-title a
{
    color: red;
}

Where 3 is the node ID.
 
I've just noticed your screenshot - it looks like you want it for sub nodes displayed inline.

The code I posted only works for top level nodes.

I'll need to fire up my local to get the code for a sub node.
 
This will work, but only because the Christmas node is the last one.

Add this to the extra.less template:

Code:
.node--id2 .node-subNodeFlatList > li:last-child a
{
    color: red;
}

Change the 2 for the ID to the parent node ID.

1602270401506.png
 
Solution
Top Bottom