Former Member
inherit
guest@proboards.com
245155
0
Nov 27, 2024 2:48:14 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 29, 2017 22:43:03 GMT -8
Hello! I'm having a bit of trouble with some coding. I'm trying to figure out how to make the secondary colour/'main_colour' of my forum (#a9af2b) on a board change when a new post is made. Something like this; where the board (on the homepage) changes from #a9af2b to a red/new colour. I've imitated the effect in my photo editing program to give an example of what I'm talking about. edited screenshot exampleSorry if this isn't detailed enough! Let me know if there's any other info you need. forum link
The specific theme I'm talking about is the default theme, the only one that's enabled. It's called 'WD Default Theme'.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on May 30, 2017 2:52:59 GMT -8
Two ways to do this.
1. Add some CSS to your style sheet that sets the background colour for the "new" class.
.new td { background-color: red; ]
2. Or if you don't want to touch the rules for the "new" class. Add a a new class to the row for each board in your board list template
<tr id="$[board.content_id]" class="$[board.content_class] {if $[board.is_new] > 0}board-new-posts{/if}">
A new class of "board-new-posts" is added if there is new posts in the board.
.board-new-posts td { background-color: red; ]
Which option you pick depends on you. #1 is easier, as it's just some simple CSS you can add to your stylehsheet. #2 is if you don't want to touch the "new" class.
|
|
Former Member
inherit
guest@proboards.com
245155
0
Nov 27, 2024 2:48:14 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 30, 2017 4:40:33 GMT -8
It wasn't what I was originally trying to achieve, but having the background change actually works better than what I was asking for at first! Thanks, Peter.
|
|