Plugin Contributor
Savvas
(@savvasha)
Hi @tomtom555 ,
First of all, remove any code you used from the topic you mentioned above.
Then to highlight with RED color the specific table add the following CSS code at SportsPress->Settings->General->Custom Code
:
.postid-15305 .sp-league-table tbody tr:nth-last-child(-n+2) {
background: red !important;
}
To highlight with GREEN color the next table add the following CSS code at SportsPress->Settings->General->Custom Code
:
.postid-15303 .sp-league-table tbody tr:nth-child(-n + 2) {
background: green !important;
}
Thanks,
Savvas
GREAT!
is there any way to create green background for first team and light green for the second one?
Plugin Contributor
Roch
(@rochesterj)
Hi there,
Thanks for your reply
That’s what I see right now in your example. Did you manage to fix it?
Thanks!
Kind Regards,
-Roch
@rochesterj .postid-15303 .sp-league-table tbody tr:nth-child(-n + 2) {
background: green !important;
}
this core color first two row
i want to color the first one in this color, and the second in light green
.postid-15303 .sp-league-table tbody tr:nth-child(1) {
background: rgba(0,255,0,0.6) !important;
}
.postid-15303 .sp-league-table tbody tr:nth-child(2) {
background: rgba(00,200,50,0.6) !important;
}
Plugin Contributor
Savvas
(@savvasha)
Hi @tomtom555,
I can assume from the above that you manage to sort it out?
Thanks,
Savvas
yes thank you.
but what about if i have more tables?
1st with 16 teams (row 1 green, row 2 light green, row 15+16 red)
2nd with 16 teams (row 1 green, row 2 light green, row 15+16 red)
3rd with 8 teams (row 1 green, row 2 light green)
4th with 8 teams (row 7+8 red)
if i put .postid-XXXXX for every table nothing happened
Plugin Contributor
Savvas
(@savvasha)
You need to change XXXX with each table ID
Yes yes. But some of them changes color. Some not. I have no idea.
@betisweb What plugin css personalized you use?
here is WP Add Custom CSS
nice solition. but do not work in widgets or with shortcuts, only on direct table site page
Plugin Contributor
Roch
(@rochesterj)
Hi tomtom555
Thanks for your reply.
Please kindly open a new topic with the league table that isn’t working and we can check it out for you.
Thanks!
@betisweb : hi. how you create next/previous player/match/club ?
Artículo anterior
Valencia Fem
Artículo siguiente
Sporting de Huelva