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

    (@rochesterj)

    Hi!

    If you want just the first N teams, that is possible via CSS. Would you mind pasting the link to your website here, so we can check it out?

    Kind Regards,
    -Roch

    Thread Starter dante_barca

    (@dante_barca)

    Roch good morning, thank you very much for your help, but unfortunately I have no knowledge of CSS. Where you should write the code?
    My website is this

    Cheers and thank you again.

    Roch

    (@rochesterj)

    Hi!

    We can help you with that ?? Add the following code in your custom css field ( Wp admin > SportsPress > Settings > General > Custom CSS ) and let us know how it works:

    .sp-data-table tbody tr:nth-child(1) {
        background: red !important;
    }
    .sp-data-table tbody tr:nth-child(2) {
        background: blue !important;
    }
    .sp-data-table tbody tr:nth-child(3) {
        background: yellow !important;
    }
    .sp-data-table tbody tr:nth-child(4) {
        background: purple!important;
    }

    Kind Regards,
    -Roch

    Thread Starter dante_barca

    (@dante_barca)

    Thank you for your help, it works perfectly but I have a problem. I have several different league tables and each takes about colors. Can I assign you’ve sent me to a particular table?
    Thank you very much again and sorry to bother you so much.
    A greeting.

    Roch

    (@rochesterj)

    Hi!

    We could target that to just one page, sure. Could you send us a link to it?

    Kind Regards,
    -Roch

    Thread Starter dante_barca

    (@dante_barca)

    Good morning, I managed to do it with this code:
    `
    .page-id-2 .sp-league-table tbody tr: nth-child (1) {
    background: # DDFDE4! important;
    }
    .page-id-2 .sp-league-table tbody tr: nth-child (2) {
    background: # FBFCE7! important;
    }
    .page-id-2 .sp-league-table tbody tr: nth-child (3) {
    background: # FBFCE7! important;
    }
    .page-id-2 .sp-league-table tbody tr: nth-child (10) {
    background: # FDDDE1! important;
    }
    .page-id-2 .sp-league-table tbody tr: nth-child (11) {
    background: # FDDDE1! important;
    }
    .page-id-2 .sp-league-table tbody tr: nth-child (12) {
    background: # FDDDE1! important;
    }

    But it also applies to widgets on the right, is there any way in widgets does not apply?

    PD: I write my website link but do not know why not come here.
    tenisdemesalapalma . com / index . php / segunda-division

    Many thanks again.

    Thread Starter dante_barca

    (@dante_barca)

    I got a thousand things trying to solve. In the end I ran this code:

    .page-id-2 .sp-league-table tbody tr: nth-child (1) {
    background: # 8AFC82! important;
    }
    .page-id-2 .sp-league-table tbody tr: nth-child (2) {
    background: # F5FB7E! important;
    }
    .page-id-2 .sp-league-table tbody tr: nth-child (3) {
    background: # F5FB7E! important;

    Thank you very much Roch, without your help would have been impossible.

    Roch

    (@rochesterj)

    Hi!

    That’s pretty much what I’d do ??

    You are a natural on this huh? I’m glad it’s resolved!

    Please set it as resolved (it really helps us a lot!) and please consider showing your support by leaving us a review ??

    Kind Regards,
    -Roch

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Differentiate the top positions in the league table dela.’ is closed to new replies.