[cXF] Coloured Node Categories

[cXF] Coloured Node Categories

Bassman, thank you the first one forum_overview_new_post only shows colour in Simple display mode, I had that code allready implemented, and as a side bar widget in simple mode it works, but not in Full display mode on top of the forum.. It just ignore the code ?
Code:
/* Coloured Widget Nieuwe Berichten */
[data-widget-key="forum_overview_new_posts"] h3.block-minorHeader {
    background: #7CA430;
    color: #ffffff;
}

And the last one, also doesn't do anything.
Code:
.node.node--id154 a.subNodeLink.subNodeLink--forum {
    color: #7CA430;
}


But I am happy the shoutbox has a colour ! Thank you !
 
Last edited:
For subnodes you can use this;
Code:
.node.node--idX a.subNodeLink {
    color: #000000
}
Well, it can be specific if the node is forum, category or link... Read/unread... but let's say this one would work for most.


No, that's the right code:
/* Coloured Widget Nieuwe Berichten */
Code:
/* Coloured Widget Nieuwe Berichten */
[data-widget-key="forum_overview_new_posts"] h3.block-header {
    background: #7CA430;
    color: #ffffff;
}
 
  • Like
Reactions: nap
Thank you for your great input, ! Strange this one doesn't work in FULL Display mode
Code:
/* Coloured Widget Nieuwe Berichten */
[data-widget-key="forum_overview_new_posts"] h3.block-minorHeader {
    background: #7CA430;
    color: #ffffff;
}


The subnode also doesn't do anything, but is not so important to me.

Think I have to buy the coloured theme once I earned some money from my cheapy members :)
 
Last edited:
Ah ok... I found out the block-header instead of the block-minorHeader.. didn't see that before.. Sorry thank you again..
 
How can I change background color of categories(1 color for all)? I suspect I will not need a mod, If I edit Highlighted content background color it works but it also changes the color of list notices and I do want to keep this color only for categories. Anyone? Thanks.
 
How can I change background color of categories(1 color for all)? I suspect I will not need a mod, If I edit Highlighted content background color it works but it also changes the color of list notices and I do want to keep this color only for categories. Anyone? Thanks.
Hello,

You can use this code in your EXTRA.less if you want to add the same color for all of your categories :
Code:
/*background color category*/
.block.block--category .block-header {
    background: #009688;
}

Regards, SyTry
 
In your forum back-end (admin control panel) go to Appearance > Templates

Screenshot 2020-11-07 at 13.00.20.webp


Then in the search field type extra:

Screenshot 2020-11-07 at 13.01.14.webp



and you'll get this:

Screenshot 2020-11-07 at 13.01.40.webp


Click on the extra.less template and paste the code inside.
 
Top Bottom