separate background color for each forum

For support and discussion related to templates and themes in phpBB 3.3.
User avatar
yusufdj
Registered User
Posts: 112
Joined: Sun Feb 18, 2018 5:35 pm

separate background color for each forum

Post by yusufdj »

Hello, how can I make a different background color for each forum? For example, one is blue and the other is red...
asd.png
You do not have the required permissions to view the files attached to this post.
Last edited by _Vinny_ on Thu Feb 22, 2024 5:08 pm, edited 1 time in total.
Reason: Topic icon changed
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6826
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: separate background color for each forum

Post by HiFiKabin »

I'm sorry, but we do not provide any support for sites suspected of illegal activity. Therefore this topic is now closed. For further information or requests to get your topic reopened, feel free to send me a private message.
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6826
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: separate background color for each forum

Post by HiFiKabin »

Reopened.
User avatar
Mannix_
Registered User
Posts: 2049
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt

Re: separate background color for each forum

Post by Mannix_ »

in forumlist_body.html find

Code: Select all

<li class="row">
and change to

Code: Select all

<li class="row bg-{forumrow.FORUM_ID}">
then you can use that class to change the background color, something like this
in any css file add

Code: Select all

.bg-1 {background-color: red;}
.bg-2 {background-color: green;}
Purge the cache in ACP and browser after making changes
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
User avatar
yusufdj
Registered User
Posts: 112
Joined: Sun Feb 18, 2018 5:35 pm

Re: separate background color for each forum

Post by yusufdj »

Mannix_ wrote: Wed Feb 21, 2024 6:09 pm in forumlist_body.html find

Code: Select all

<li class="row">
and change to

Code: Select all

<li class="row bg-{forumrow.FORUM_ID}">
then you can use that class to change the background color, something like this
in any css file add

Code: Select all

.bg-1 {background-color: red;}
.bg-2 {background-color: green;}
Purge the cache in ACP and browser after making changes
Worked. Thank you very much.

Return to “[3.3.x] Styles Support & Discussion”