• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Change Background Color for Specific Forums on Homepage

Admin

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

New posts New threads New resources

Back
Top