Change Background Color for Specific Forums on Homepage

  • Thread starter Thread starter AdminAdmin is verified member.
  • Start date Start date
A

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
This modification will allow you to change the background color of specific forums on your forumhome.

For example, if you want to draw more attention to your private sections to drive paid registrations, this can help.

This mod is done via one simple template edit.

STEP 1 - Find the forumhome_forumbit_level2_post template via edit templates > Forum Home Templates.

Find the code below
<div class="forumrow table">

And replace it with
<div class="forumrow table"
<vb:if condition="$forum[forumid] == ***">
style="#xxxxxx"
</vb:if>
>

Replace *** with the forumid of the forum you want to change the background color of.

Replace xxxxxx to the hex code of the color you want to use. You can find hex codes here, http://www.html-color-codes.com

If you have multiple forums you want to change the background colors of for each, simply stack additional vb:if conditions before the > for each forum you want to change.

Like below
<div class="forumrow table"
<vb:if condition="$forum[forumid] == ***">
style="#xxxxxx"
</vb:if>
<vb:if condition="$forum[forumid] == ***">
style="#xxxxxx"
</vb:if>
<vb:if condition="$forum[forumid] == ***">
style="#xxxxxx"
</vb:if>
>

Straight forward, works like a charm.
 

Facebook Comments

Similar threads

A
Replies
1
Views
2K
AdminAdmin is verified member.
A
A
Replies
0
Views
1K
AdminAdmin is verified member.
A
A
Replies
0
Views
2K
AdminAdmin is verified member.
A
A
Replies
0
Views
1K
AdminAdmin is verified member.
A
A
Replies
0
Views
699
AdminAdmin is verified member.
A
A
Replies
0
Views
674
AdminAdmin is verified member.
A
A
Replies
0
Views
810
AdminAdmin is verified member.
A
A
Replies
0
Views
958
AdminAdmin is verified member.
A
N
Replies
1
Views
2K
newbe
N
Back
Top