• Resolved maxperoni

    (@maxperoni)


    Hello, there is a regulation of the league table that allows you to color the last 3 or 4 teams (so lines of classification) that will go to the lower category (relegation)? Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Roch

    (@rochesterj)

    Hi!

    Thanks for reaching out!

    My name is Roch and I’m going to help you with your support issues.

    I think it can be done via CSS. Would you mind pasting the link to your website here, so we can check it out?

    Thanks!

    Thread Starter maxperoni

    (@maxperoni)

    Hi Roch,
    thanks for the possible help.
    Here is the link:
    https://www.valceresio.it/asdbasketvalceresio/classifica-serie-c-gold-2017-18/

    Max

    • This reply was modified 6 years, 8 months ago by maxperoni.
    • This reply was modified 6 years, 8 months ago by maxperoni.
    Roch

    (@rochesterj)

    Hi Max!

    Thanks for the link.

    Add the following code in your custom css field ( Wp admin > SportsPress > Settings > General > Custom CSS ) and let us know how it works:

    #content .sp-league-table tr:nth-last-child(1) td, #content .sp-league-table tr:nth-last-child(2) td, #content .sp-league-table tr:nth-last-child(3) td, #content .sp-league-table tr:nth-last-child(4) td {
    	background: red !important;
    }
    

    Thanks!

    we can do it by the position?

    for exemple:
    line 1: green
    line 17: red
    line 18: red

    But the “red color” depends on the total off team in the championship

    Thanks

    Roch

    (@rochesterj)

    Hi @almirocunha

    Sure, we can do that.

    Plese open a new topic so we can help you.

    Thanks!

    Thread Starter maxperoni

    (@maxperoni)

    Hi Roch,
    it works perfectly.
    Thank you very much!

    Max

    Roch

    (@rochesterj)

    You’re most welcome!

    Let us know if you need anything else.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘League table colored by ranking’ is closed to new replies.