News:

Wondering if this will always be free?  See why free is better.

Main Menu

Alternating post Background

Started by Flamebear, July 12, 2016, 01:28:54 PM

Previous topic - Next topic

Flamebear

Hi Guys

I am working on a forum theme, now this is a pretty dark theme which make some text harder for the eye (using the primary colors).
So I want to change the background of the posts (not all backgrounds), the dark background is 'windowbg' I have defined a 'windowbg3' the same as 'windowbg' only using a different background color for easier reading, now I did change the references of 'windowbg' in Post.template.php to 'windowbg3' but when looking at my forum it keep creating posts with class 'windowbg'.
Does anyone have an idea what could be causing this ?

Thanks

Illori

try display.template.php instead.

Flamebear

Quote from: Illori on July 12, 2016, 01:35:48 PM
try display.template.php instead.

Don't have that in my current theme

Antes

Instead going for php try

#forumposts .windowbg { background: #color; }

Illori

Quote from: Flamebear on July 12, 2016, 01:54:35 PM
Quote from: Illori on July 12, 2016, 01:35:48 PM
try display.template.php instead.

Don't have that in my current theme

then add a copy of it from the default theme.

Kindred

As antes says:


Quote from: Antes on July 12, 2016, 01:58:10 PM
Instead going for php try

#forumposts .windowbg { background: #color; }

Don't modify php template files when CSS can do it much easier -- and easier to support.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Flamebear

Quote from: Kindred on July 12, 2016, 02:10:38 PM
As antes says:


Quote from: Antes on July 12, 2016, 01:58:10 PM
Instead going for php try

#forumposts .windowbg { background: #color; }

Don't modify php template files when CSS can do it much easier -- and easier to support.

Would it not change all backgrounds ? I like the alternating style ?

Kindred

no...   the background uses windowbg and windowbg2 to do alternating
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Flamebear

Works like a charm

Thanks guys !!!

Advertisement: