Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: SkyWarp on March 16, 2004, 09:58:42 PM

Title: Background colors
Post by: SkyWarp on March 16, 2004, 09:58:42 PM
I am having some trouble trying to figure out how to change the background colors of the main page and secondary pages between different windows (windowbg and windowbg2)  BUT at the same time NOT changing the color of the posts windows.  I want a solid color on the front page and topic pages, but the actually colors for the the messages I want to alternate! 

When I try to change one I end up changing both!   :(  How do I do this without changing both? 
Title: Re: Background colors
Post by: Owdy on March 18, 2004, 01:38:43 PM
You have to make new classess in style.css and change them also in display.template.php . Like windowbg3 and 4. Find in display.template.php this

<td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '">';

and change to this

<td class="', $message['alternate'] == 0 ? 'windowbg3' : 'windowbg4', '">';

Havent tested, but should work.