Admin

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

Admin
Replies
1
Views
3K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
3K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
2K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
791
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
771
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
880
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
N
Replies
1
Views
2K
newbe
N