• matujma

    (@matujma)


    If there is any posibility to have team higlight for a particular position constantly in league table ?
    For example when I’ve got 15 teams and I would like to higliht 8th place whith guarantee a promotion to playoffs.

    Looking forward for Your answer.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Gator8

    (@gator8)

    Add some custom CSS to say:

    table#[TABLE_ID] .sp-row-no-X {
    background: red;
    }

    where [TABLE_ID} is the id of the table in question and “X” is the row you want highlighted (starting at 0) – so, in your case, X would be 7

    Roch

    (@rochesterj)

    Great idea @gator8 ??

    Kind Regards,
    -Roch

    Thread Starter matujma

    (@matujma)

    Add it in Plugins CSS ?

    Thread Starter matujma

    (@matujma)

    It’s not working. I think I’m doing something wrong, so please tell me where exactly I have to put this code.
    @gator8 @rochesterj

    Gator8

    (@gator8)

    You can put the CSS code into SportsPress -> Settings -> Custom CSS

    You need to know the ID of the table. You can do this by using F12 to show the styles.

    Can you post the link to the table and I’ll post the code you’ll need.

    Thread Starter matujma

    (@matujma)

    Roch

    (@rochesterj)

    Hi!

    I don’t see that code in your site. Have you removed it?

    Kind Regards,
    -Roch

    Thread Starter matujma

    (@matujma)

    I don’t removed it. I have ThemeBoy and I create ‘Child Theme’ of ThemeBoy for my sites stability. Is this problem ? @rochesterj

    Gator8

    (@gator8)

    Ok. Let’s assume you want to color the Nuggets (pos 8)
    Add this in to the custom CSS

    table#DataTables_Table_0 .sp-row-no-7 {
    background: red;
    }

    use whatever color your want.
    That should do it.

    Thread Starter matujma

    (@matujma)

    This code changed 8th place in all tables on my site so it’s not good.
    Anyway, thank You very much @gator8 @rochesterj ??

    I hope that I’ll do it ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Teams highlights in League Table’ is closed to new replies.