XF 2.3 Way to assign css or colors to particular category?

Solution
In template extra.less

e.g. to change title of category id4

Code:
 .block--category4 h2 a

{color:green}

(to get the id number of a category look in ACP > Forums > Nodes open the category settings and look in the browser address bar)

NB: note that for more extensive category (or node) cold changes, create a child theme with those colours and choose that theme in the specific node settings:


Screenshot 2024-10-11 at 08.56.17.webp
Would need more details since you can apply styling to a single node at a time.

Do you want to just highlight that category background? Change title colors of each forum node in the category?
 
In template extra.less

e.g. to change title of category id4

Code:
 .block--category4 h2 a

{color:green}

(to get the id number of a category look in ACP > Forums > Nodes open the category settings and look in the browser address bar)

NB: note that for more extensive category (or node) cold changes, create a child theme with those colours and choose that theme in the specific node settings:


Screenshot 2024-10-11 at 08.56.17.webp
 
Last edited:
Solution
In template extra.less

e.g. to change title of category id4

Code:
 .block--category4 h2 a

{color:green}

(to get the id number of a category look in ACP > Forums > Nodes open the category settings and look in the browser address bar)

NB: note that for more extensive category (or node) cold changes, create a child theme with those colours and choose that theme in the specific node settings:


View attachment 312340
Thank you!
 
In template extra.less

e.g. to change title of category id4

Code:
 .block--category4 h2 a

{color:green}

(to get the id number of a category look in ACP > Forums > Nodes open the category settings and look in the browser address bar)

NB: note that for more extensive category (or node) cold changes, create a child theme with those colours and choose that theme in the specific node settings:


View attachment 312340
Worked good. Is there a way to do this by post as well? The format we came from had a bar to the side at top that users know by color if group was public or private. One user was having problems trying to figure out what he was posting where.
 
Back
Top Bottom