
hifitechindia
Administrator
Staff member
- Downloaded
- 0 bytes
- Uploaded
- 0 bytes
- Ratio
- -
- Seedbonus
- 0
- Upload Count
- 1 (0)
- Credits
- 0
Offline
Sometimes, we want different color for each category forum. So here simple css which you want to try.
Add to extra.less in your template.
XX is your category id. As we know, XF has unique id on url link. Just like this sub forum, the id is 55
If you bored with unique id on url. Just for good looking or may SEO
In Admin backend, nodes. URL Portion (Optional) :
Add to extra.less in your template.
Code:
/* Coloring Category and Node */
.block.block--category.block--categoryXX .block-header {
background: -webkit-linear-gradient(335deg, #28356c 44%, #074946 64%, #21307a 100%);
}
.block.block--category.block--categoryXX .block-body {
background: -webkit-linear-gradient(19deg, #161c31 0%, #30264b 44%, #213c40 58%, #13395a 76%, #272b56 100%);
}
If you bored with unique id on url. Just for good looking or may SEO
In Admin backend, nodes. URL Portion (Optional) :
Code:
xenforo-tips-guides